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/Text.c
parent2403120f33ab26cbce7893c947c4d5ef1f926ead (diff)
unfix previous fix.
Scene and Text don't need their user counts adjusted.
Diffstat (limited to 'source/blender/python/api2_2x/Text.c')
-rw-r--r--source/blender/python/api2_2x/Text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Text.c b/source/blender/python/api2_2x/Text.c
index e2819de3bab..933191eda56 100644
--- a/source/blender/python/api2_2x/Text.c
+++ b/source/blender/python/api2_2x/Text.c
@@ -50,8 +50,8 @@ static PyObject *M_Text_New(PyObject *self, PyObject *args, PyObject *keywords)
bl_text = add_empty_text();
if (bl_text) {
- /* return user count to zero because add_empty_text() inc'd it */
- bl_text->id.us = 0;
+ /* do not set user count because Text is already linked */
+
/* create python wrapper obj */
py_text = Text_CreatePyObject (bl_text);
}