Enabled threads for rendering.

This commit is contained in:
Campbell Barton 2006-09-08 16:41:35 +00:00
parent c5fe47fc96
commit 1b6cf3e6ee

@ -22,7 +22,7 @@ def imageFromObjectsOrtho(objects, path, width, height, smooth, alpha= True):
f= open(path_expand, 'w')
f.close()
except:
raise 'Error, could not write to path'
raise 'Error, could not write to path:' + path_expand
# RENDER THE FACES.
@ -76,7 +76,7 @@ def imageFromObjectsOrtho(objects, path, width, height, smooth, alpha= True):
render_cam_ob.LocZ= 1.0
render_cam_ob.LocX= 0.5
render_cam_ob.LocY= 0.5
render_context.threads= True # good for dual core cpu's
render_context.render()
render_context.saveRenderedImage(path)
# Render.CloseRenderWindow()