unfix previous fix.

Scene and Text don't need their user counts adjusted.
This commit is contained in:
Stephen Swaney
2003-11-12 07:46:07 +00:00
parent 2403120f33
commit bd993f13d4
2 changed files with 8 additions and 4 deletions

View File

@@ -230,8 +230,12 @@ static PyObject *M_Scene_New(PyObject *self, PyObject *args, PyObject *kword)
blscene = add_scene(name); /* first create the Scene in Blender */
if (blscene){
/* return user count to zero because add_scene() inc'd it */
blscene->id.us = 0;
/* normally, for most objects, we set the user count to zero here.
* Scene is different than most objs since it is the container
* for all the others. Since add_scene() has already set
* the user count to one, we leave it alone.
*/
/* now create the wrapper obj in Python */
pyscene = Scene_CreatePyObject (blscene);
}