* Fixed a bug in Object.getSelected(). All the objects were returned in stead
of just the selected object(s). This bug was pointed out by Jacek Poplawski. * If there's already a PyObject of a certain object available, then don't create a new one, just return the specified object. * Updated the Object_getData function to return correct objects. So far it can return objects of type Camera, Curve, Lamp and Object.
This commit is contained in:
@@ -89,7 +89,11 @@ The active object is the first in the list, if visible";
|
||||
/*****************************************************************************/
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
struct Object *object;
|
||||
struct Object * object;
|
||||
|
||||
/* points to the data. This only is set when there's a valid PyObject */
|
||||
/* that points to the linked data. */
|
||||
PyObject * data;
|
||||
} C_Object;
|
||||
|
||||
/*****************************************************************************/
|
||||
|
Reference in New Issue
Block a user