diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-01-03 06:50:58 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-01-03 06:50:58 +0300 |
commit | de21846e690dd5a4606a42b776d55f119e5620d7 (patch) | |
tree | dad33441376915f0fd45e14bd68ad9c2ff9df675 /source/blender/python/api2_2x/Ipocurve.c | |
parent | dc343a17e52560d1a4528447b05293aa7a99e8b4 (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/Ipocurve.c')
-rw-r--r-- | source/blender/python/api2_2x/Ipocurve.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Ipocurve.c b/source/blender/python/api2_2x/Ipocurve.c index 9ba3b3c3e87..56bb5f75226 100644 --- a/source/blender/python/api2_2x/Ipocurve.c +++ b/source/blender/python/api2_2x/Ipocurve.c @@ -193,6 +193,10 @@ static PyObject* IpoCurve_getName (C_IpoCurve *self) { char * nametab[24] = {"LocX","LocY","LocZ","dLocX","dLocY","dLocZ","RotX","RotY","RotZ","dRotX","dRotY","dRotZ","SizeX","SizeY","SizeZ","dSizeX","dSizeY","dSizeZ","Layer","Time","ColR","ColG","ColB","ColA"}; + if (self->ipocurve->blocktype != ID_OB) + return EXPP_ReturnPyObjError (PyExc_TypeError, + "This function doesn't support this ipocurve type yet"); + // printf("IpoCurve_getName %d\n",self->ipocurve->vartype); if (self->ipocurve->adrcode <=0 ) return PyString_FromString("Index too small"); |