fix [#25948] blender-thumbnailer.py does incorrect checking for the number of arguments
authorCampbell Barton <ideasman42@gmail.com>
Sun, 6 Feb 2011 06:54:19 +0000 (06:54 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 6 Feb 2011 06:54:19 +0000 (06:54 +0000)
noticed by Shinsuke Irie (irie)

release/bin/blender-thumbnailer.py

index 8c95a001c5dadd5b057bc0b99339e3114a3af1f7..abd85cd3becafd4cb680b5f169661e080827c626 100755 (executable)
@@ -118,7 +118,7 @@ def write_png(buf, width, height):
 if __name__ == '__main__':
     import sys
 
-    if len(sys.argv) < 2:
+    if len(sys.argv) < 3:
         print("Expected 2 arguments <input.blend> <output.png>")
     else:
         file_in = sys.argv[-2]