forked from bartvdbraak/blender
fix [#25948] blender-thumbnailer.py does incorrect checking for the number of arguments
noticed by Shinsuke Irie (irie)
This commit is contained in:
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]
|
||||
|
Loading…
Reference in New Issue
Block a user