Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2007-12-11 04:58:22 +0300
committerKen Hughes <khughes@pacific.edu>2007-12-11 04:58:22 +0300
commit910ef6ca754579d7f605603ab1d737c89f8579c3 (patch)
treef0f4fc4f3c5e02558b7fdbd7913ce178ec7c8630 /source/blender/python/api2_2x/Modifier.c
parentdbb13c07cc64ae087d4eaace76df9d65c1034867 (diff)
Python API
---------- Bugfix #7898: added access to DISPLACE modifiers, add ARRAY constant to modifier documentation.
Diffstat (limited to 'source/blender/python/api2_2x/Modifier.c')
-rw-r--r--source/blender/python/api2_2x/Modifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Modifier.c b/source/blender/python/api2_2x/Modifier.c
index a1b052eb674..704daf306e2 100644
--- a/source/blender/python/api2_2x/Modifier.c
+++ b/source/blender/python/api2_2x/Modifier.c
@@ -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;
}