diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-02-20 12:23:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-02-20 12:23:13 +0300 |
commit | 64231d19bf72d0315c30fc0ef9412db473a17579 (patch) | |
tree | b7ee173e547e1b68ec7a28e62d6e6d4e9e5c7b62 /source/blender/python/api2_2x/Object.c | |
parent | 6c17f1187e79eed2552ac06c91d51b24ee34f738 (diff) |
Object parentType could never match Object.ParentTypes.LATTICE, Id incorrectly assigned the lattice constant. Armature and Lattice parent types are the same. documented this.
Diffstat (limited to 'source/blender/python/api2_2x/Object.c')
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index 0a191177719..8f3a55c201e 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -5351,7 +5351,11 @@ static PyObject *M_Object_ParentTypesDict( void ) BPy_constant *d = ( BPy_constant * ) M; PyConstant_Insert( d, "OBJECT", PyInt_FromLong( PAROBJECT ) ); PyConstant_Insert( d, "CURVE", PyInt_FromLong( PARCURVE ) ); - PyConstant_Insert( d, "LATTICE", PyInt_FromLong( PARKEY ) ); + + /* 2.43 was released as LATTICE as PARKEY, my bad, + lattice uses PARSKEL also - Campbell */ + PyConstant_Insert( d, "LATTICE", PyInt_FromLong( PARSKEL ) ); + PyConstant_Insert( d, "ARMATURE", PyInt_FromLong( PARSKEL ) ); PyConstant_Insert( d, "VERT1", PyInt_FromLong( PARVERT1 ) ); PyConstant_Insert( d, "VERT3", PyInt_FromLong( PARVERT3 ) ); |