removed reload,

BPyRender accedentaly left the scene rather then removing it.
This commit is contained in:
2006-07-26 11:39:32 +00:00
parent fd281bec04
commit f36fc4fe21
3 changed files with 6 additions and 10 deletions

View File

@@ -71,9 +71,8 @@ def imageFromObjectsOrtho(objects, path, width, height, alpha= True):
render_cam_ob.LocY= 0.5
render_context.render()
#Render.CloseRenderWindow()
render_context.saveRenderedImage(path)
# Render.CloseRenderWindow()
#if not B.sys.exists(PREF_IMAGE_PATH_EXPAND):
# raise 'Error!!!'
@@ -86,5 +85,5 @@ def imageFromObjectsOrtho(objects, path, width, height, alpha= True):
raise 'Error: Could not render or load the image at path "%s"' % path_expand
return
#scn.makeCurrent()
#Scene.Unlink(render_scn)
scn.makeCurrent()
Scene.Unlink(render_scn)