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:
authorWillian Padovani Germano <wpgermano@gmail.com>2004-01-03 06:50:58 +0300
committerWillian Padovani Germano <wpgermano@gmail.com>2004-01-03 06:50:58 +0300
commitde21846e690dd5a4606a42b776d55f119e5620d7 (patch)
treedad33441376915f0fd45e14bd68ad9c2ff9df675 /source/blender/python/api2_2x/Types.c
parentdc343a17e52560d1a4528447b05293aa7a99e8b4 (diff)
BPython:
- Fixed small typo in doc file Object.py, reported by user Bill. - Fixed bug #803: Bug #803's Summary: print, type() or BezTriple broken Trying to print type(BezTriple) was crashing Blender because that type wasn't being initialized to PyType_Type. The other problem is that the getName method for ipocurves only works for object ipos. A warning was added for when users try to use it with other blocktypes, we'll later update ipo related stuff in bpython to work for all types.
Diffstat (limited to 'source/blender/python/api2_2x/Types.c')
-rw-r--r--source/blender/python/api2_2x/Types.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Types.c b/source/blender/python/api2_2x/Types.c
index dbda9e936e2..0a45ceb89df 100644
--- a/source/blender/python/api2_2x/Types.c
+++ b/source/blender/python/api2_2x/Types.c
@@ -49,6 +49,7 @@ PyObject *Types_Init (void)
constant_Type.ob_type = &PyType_Type;
buffer_Type.ob_type = &PyType_Type;
Button_Type.ob_type = &PyType_Type;
+ BezTriple_Type.ob_type = &PyType_Type;
/* Another one that needs to be here: */
Text_Type.ob_type = &PyType_Type;
@@ -99,6 +100,7 @@ PyObject *Types_Init (void)
PyDict_SetItemString(dict, "bufferType", (PyObject *)&buffer_Type);
PyDict_SetItemString(dict, "constantType", (PyObject *)&constant_Type);
PyDict_SetItemString(dict, "rgbTupleType", (PyObject *)&rgbTuple_Type);
+ PyDict_SetItemString(dict, "BezTripleType", (PyObject *)&BezTriple_Type);
return submodule;
}