From: <bav...@us...> - 2010-02-23 23:06:47
|
Revision: 5020 http://hugin.svn.sourceforge.net/hugin/?rev=5020&view=rev Author: bavanandel Date: 2010-02-23 23:06:40 +0000 (Tue, 23 Feb 2010) Log Message: ----------- Bugfix to the last update (I mixed up two versions on my harddrive) Modified Paths: -------------- hugin/trunk/platforms/windows/smartblend-wrapper/smartblend-hugin.bat Modified: hugin/trunk/platforms/windows/smartblend-wrapper/smartblend-hugin.bat =================================================================== --- hugin/trunk/platforms/windows/smartblend-wrapper/smartblend-hugin.bat 2010-02-23 22:49:31 UTC (rev 5019) +++ hugin/trunk/platforms/windows/smartblend-wrapper/smartblend-hugin.bat 2010-02-23 23:06:40 UTC (rev 5020) @@ -3,22 +3,24 @@ set SMARTBLEND=%~dp0\smartblend.exe set SMARTBLENDARGS= -rem Hugin sets -w, -o and --compression automatically. Smartblend does not -rem understand --compression (and its parameter), so we have to drop those. -rem The -w argument is only partly understood as a "compatibility" feature -rem for Enblend users (see the readme.txt file which came with Smartblend). +rem This is where we strip out arguments which Smartblend does not understand. +rem Hugin automatically sets a few (-w, -o, --compression, -f) but out of +rem these, Smartbland can only handle -o and -w (the latter only partly). +rem See the readme.txt bundled with Smartblend for details. :paramstrip set arg=%1 if not "%arg%"=="" ( if "%arg%"=="--compression" ( - rem Skip compression parameter and its argument + echo [smartblend-wrapper] Skipping compression argument and its parameter: %1 %2 shift + ) else if "%arg:~0,2%"=="-f" ( + echo [smartblend-wrapper] Skipping crop argument: %1 ) else if "%arg:~0,2%"=="-o" ( - rem Set output parameter + echo [smartblend-wrapper] Output file: %2 set SMARTBLENDARGS=%SMARTBLENDARGS% -o %2 shift ) else ( - rem Copy other parameters + rem Copy other arguments set SMARTBLENDARGS=%SMARTBLENDARGS% %1 ) shift @@ -31,4 +33,4 @@ "%SMARTBLEND%" %SMARTBLENDARGS% -endlocal \ No newline at end of file +endlocal This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |