diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2006-06-18 23:05:51 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2006-06-18 23:05:51 +0400 |
commit | 2ca99a5e09a51706b2f9b5e8903394403f20ac33 (patch) | |
tree | 48a0acb98372d954571dfcec2d3f2b0da397610e /source/blender/python/api2_2x/Blender.c | |
parent | 29b78eba6f5018fec42cd48fb1a2ecdafa8dba2b (diff) |
Scripts:
- Jean-Michel Soler updated the svg to obj module used by Paths
Importer (thanks!)
- user request: added option to control whether user prefers per face
(uv face select "TwoSided" toggle) or per mesh ("Double Sided") single /
double face info in ac3d exporter.
BPY:
- Blender_ShowHelp() was now crashing Blender when called for the
second time, due to EXPP_dict_set_item_str decrementing the reference
count of an object passed as argument to Blender_ShowHelp() (so not
owned by that function).
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r-- | source/blender/python/api2_2x/Blender.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c index 896ea09bfd4..5c67089abc0 100644 --- a/source/blender/python/api2_2x/Blender.c +++ b/source/blender/python/api2_2x/Blender.c @@ -709,7 +709,10 @@ static PyObject *Blender_ShowHelp(PyObject *self, PyObject *args) return EXPP_ReturnPyObjError(PyExc_MemoryError, "can't create py dictionary!"); - EXPP_dict_set_item_str(rkeyd, "script", script); + /* note: don't use EXPP_dict_set_item_str for 'script', which is an + * argument to the function we're in and so shouldn't be decref'ed: */ + PyDict_SetItemString(rkeyd, "script", script); + EXPP_dict_set_item_str(bpy_registryDict, "__help_browser", rkeyd); arglist = Py_BuildValue("(s)", hspath); |