[Bf-python] Crashing Blender with incomplete objects

models at paposo.com models at paposo.com
Fri Oct 3 04:19:13 CEST 2003


Just add this to Scene.link():

if(object->data == NULL)
  return EXPP_ReturnPyObjError(PyExc_AttributeError,
  "object must be linked to a datablock before being added to the
scene...");

Now it flags the problem when you run that script again, and tells you you
need to link the object to data before it can be rendered.




More information about the Bf-python mailing list