fix [#25948] blender-thumbnailer.py does incorrect checking for the number of arguments

noticed by Shinsuke Irie (irie)
This commit is contained in:
Campbell Barton 2011-02-06 06:54:19 +00:00
parent 6705d5c7e7
commit 48a8cba7a9

@ -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]