Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2003-11-12 10:46:07 +0300
committerStephen Swaney <sswaney@centurytel.net>2003-11-12 10:46:07 +0300
commitbd993f13d40d1b08798bd0145e3466239ab29277 (patch)
treecaf8330734bb6c0eb4d90a158b9036964562acc6 /source/blender/python/api2_2x/Scene.c
parent2403120f33ab26cbce7893c947c4d5ef1f926ead (diff)
unfix previous fix.
Scene and Text don't need their user counts adjusted.
Diffstat (limited to 'source/blender/python/api2_2x/Scene.c')
-rw-r--r--source/blender/python/api2_2x/Scene.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c
index b675a9b0708..fd3e3bfb9b4 100644
--- a/source/blender/python/api2_2x/Scene.c
+++ b/source/blender/python/api2_2x/Scene.c
@@ -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);
}