forked from bartvdbraak/blender
Python API
---------- Bugfix #7898: added access to DISPLACE modifiers, add ARRAY constant to modifier documentation.
This commit is contained in:
parent
dbb13c07cc
commit
910ef6ca75
@ -776,8 +776,6 @@ static PyObject *array_getter( BPy_Modifier * self, int type )
|
||||
return PyFloat_FromDouble( md->length );
|
||||
else if( type == EXPP_MOD_MERGE_DIST )
|
||||
return PyFloat_FromDouble( md->merge_dist );
|
||||
else if( type == EXPP_MOD_MERGE_DIST )
|
||||
return PyFloat_FromDouble( md->merge_dist );
|
||||
else if( type == EXPP_MOD_OFFSET_VEC)
|
||||
return newVectorObject( md->offset, 3, Py_NEW );
|
||||
else if( type == EXPP_MOD_SCALE_VEC)
|
||||
@ -1505,6 +1503,8 @@ static PyObject *M_Modifier_TypeDict( void )
|
||||
PyInt_FromLong( eModifierType_Smooth ) );
|
||||
PyConstant_Insert( d, "CAST",
|
||||
PyInt_FromLong( eModifierType_Cast ) );
|
||||
PyConstant_Insert( d, "DISPLACE",
|
||||
PyInt_FromLong( eModifierType_Displace ) );
|
||||
}
|
||||
return S;
|
||||
}
|
||||
|
@ -49,6 +49,7 @@ Example::
|
||||
@var Types: Constant Modifier dict used for L{ModSeq.append} to a
|
||||
modifier sequence and comparing with L{Modifier.type}:
|
||||
- ARMATURE - type value for Armature modifiers
|
||||
- ARRAY - type value for Array modifiers
|
||||
- BOOLEAN - type value for Boolean modifiers
|
||||
- BUILD - type value for Build modifiers
|
||||
- CURVE - type value for Curve modifiers
|
||||
|
Loading…
Reference in New Issue
Block a user