Scene.c - Removed redraw when in non UI mode.

Lamp.py - Example indent
Object.py - Improved join documentation.
This commit is contained in:
2006-01-06 01:53:26 +00:00
parent 39fcd3586f
commit ef520a8cc9
3 changed files with 20 additions and 15 deletions

View File

@@ -934,7 +934,7 @@ static PyObject *Scene_setCurrentCamera( BPy_Scene * self, PyObject * args )
scene->camera = object; /* set the current Camera */
/* if this is the current scene, update its window now */
if( scene == G.scene )
if( !G.background && scene == G.scene ) /* Traced a crash to redrawing while in background mode -Campbell */
copy_view3d_lock( REDRAW );
/* XXX copy_view3d_lock(REDRAW) prints "bad call to addqueue: 0 (18, 1)".