Skip to content
Snippets Groups Projects
Commit ce9a3d0b authored by Michel Selten's avatar Michel Selten
Browse files

Bug fix provided by Anders Nilssen.

TotIpo was never meant to be exposed in the Ipocurve object. It's a variable
to store the number of IPOs.
parent 7707bcee
No related branches found
No related tags found
No related merge requests found
...@@ -348,7 +348,7 @@ IpoCurve_getName (C_IpoCurve * self) ...@@ -348,7 +348,7 @@ IpoCurve_getName (C_IpoCurve * self)
"RotX","RotY","RotZ","dRotX","dRotY","dRotZ","SizeX","SizeY","SizeZ", "RotX","RotY","RotZ","dRotX","dRotY","dRotZ","SizeX","SizeY","SizeZ",
"dSizeX","dSizeY","dSizeZ","Layer","Time","ColR","ColG","ColB","ColA"}; "dSizeX","dSizeY","dSizeZ","Layer","Time","ColR","ColG","ColB","ColA"};
const char * ac_nametab[5] = {"QuatW", "QuatX", "QuatY", "QuatZ","TotIpo"}; const char * ac_nametab[5] = {"QuatW", "QuatX", "QuatY", "QuatZ"};
switch (objectType) { switch (objectType) {
case ID_OB: { case ID_OB: {
...@@ -371,9 +371,6 @@ IpoCurve_getName (C_IpoCurve * self) ...@@ -371,9 +371,6 @@ IpoCurve_getName (C_IpoCurve * self)
case 25: case 26: case 27: case 28: case 25: case 26: case 27: case 28:
return PyString_FromString(ac_nametab[trackType-25]); return PyString_FromString(ac_nametab[trackType-25]);
break; break;
case 10:
return PyString_FromString(ac_nametab[4]);
break;
default: default:
return PyString_FromString("Index out of range"); return PyString_FromString("Index out of range");
} }
......
...@@ -234,7 +234,7 @@ class IpoCurve: ...@@ -234,7 +234,7 @@ class IpoCurve:
def getName(): def getName():
""" """
Returns the name of the ipo curve.This name can be : LocX,LocY,LocZ,dLocX,dLocY,dLocZ,RotX,RotY,RotZ,dRotX,dRotY,dRotZ,SizeX,SizeY,SizeZ,dSizeX,dSizeY,dSizeZ,Layer,Time,ColR,ColG,ColB,ColA,QuatX,QuatY,QuatZ,QuatW or TotIpo. Currently only works with object and action IPO's.. Returns the name of the ipo curve. This name can be : LocX,LocY,LocZ,dLocX,dLocY,dLocZ,RotX,RotY,RotZ,dRotX,dRotY,dRotZ,SizeX,SizeY,SizeZ,dSizeX,dSizeY,dSizeZ,Layer,Time,ColR,ColG,ColB,ColA,QuatX,QuatY,QuatZ or QuatW. Currently only works with object and action IPO's..
@rtype: string @rtype: string
@return: the name of the ipo curve. @return: the name of the ipo curve.
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment