Object parentType could never match Object.ParentTypes.LATTICE, Id incorrectly assigned the lattice constant. Armature and Lattice parent types are the same. documented this.

This commit is contained in:
Campbell Barton
2007-02-20 09:23:13 +00:00
parent 6c17f1187e
commit 64231d19bf
2 changed files with 6 additions and 2 deletions

View File

@@ -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 ) );