[Bf-python] Crashing Blender with incomplete objects

Willian Padovani Germano wgermano at ig.com.br
Fri Oct 3 04:34:02 CEST 2003


----- Original Message -----
From: <models at paposo.com>
To: <bf-python at blender.org>
Sent: Thursday, October 02, 2003 11:19 PM
Subject: Re: [Bf-python] Crashing Blender with incomplete objects


> 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...");

As I said, Joseph, this can break compatibility.  Creating the ob->data
right in scene.link() may solve the issue, let's see.

--
Willian, wgermano at ig.com.br





More information about the Bf-python mailing list