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:
@@ -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 ) );
|
||||
|
||||
@@ -56,7 +56,7 @@ Example::
|
||||
@var ParentTypes: Constant dict used for with L{Object.parentType} attribute.
|
||||
- OBJECT: Object parent type.
|
||||
- CURVE: Curve deform parent type.
|
||||
- LATTICE: Lattice deform parent type.
|
||||
- LATTICE: Lattice deform parent type. Note: This is the same as ARMATURE, 2.43 was released with LATTICE as an invalid value.
|
||||
- ARMATURE: Armature deform parent type.
|
||||
- VERT1: 1 mesh vert parent type.
|
||||
- VERT3: 1 mesh verts parent type.
|
||||
|
||||
Reference in New Issue
Block a user