Use --render when creating expected images

master
Marius Kintel 2014-07-22 15:45:21 -04:00
parent dec1abd827
commit 07da269643
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ if inputsuffix != '.scad' and inputsuffix != '.csg':
# doc/testing.txt). Used for 3d formats that dont encode color, like STL.
# (importing an STL will destroy the 'negative face' colors of OpenCSG/CGAL)
if os.getenv("TEST_GENERATE") and args.format in ['stl','off']:
create_expected_png_cmd = [args.openscad, inputfile, '--colorscheme=Monotone', '-o', pngfile]
create_expected_png_cmd = [args.openscad, inputfile, '--render', '-o', pngfile]
print('Running OpenSCAD for TEST_GENERATE:')
print(' '.join(create_expected_png_cmd))
result = subprocess.call(create_expected_png_cmd)