forked from bartvdbraak/blender
Enabled threads for rendering.
This commit is contained in:
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()
|
||||
|
Loading…
Reference in New Issue
Block a user