* 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:
2003-05-20 19:02:09 +00:00
parent 5930fe7162
commit 0bebdabad2
2 changed files with 52 additions and 12 deletions

View File

@@ -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;
/*****************************************************************************/