[Bf-python] Blender -b and Scenes

Willian Padovani Germano wgermano at superig.com.br
Wed Mar 22 01:50:50 CET 2006


Hi Campbell,

Creating automatically a new scene seems a little too much. IMO, better 
just check for it wherever it's needed (we should anyway never take for 
granted that a pointer is valid) and return a runtime error if G.scene 
is NULL.

Campbell Barton wrote:
> Blender running in backgroud mode dosent start with a scene.
> there have been 2 bugs reported recently that exist because the python 
> API can run when blender has no Scene.
> 
> Why not check for G.scene==NULL and make a new Scene on importing Blender?
> Any objections?
> 
> - Cam

--
Willian



More information about the Bf-python mailing list