diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-04-25 04:37:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-04-25 04:37:19 +0400 |
commit | 0c7e145dcedaf3e22abaead61c1b1cb431a7da0a (patch) | |
tree | e5a63e7207912ba5e03b124834e52c4e7b2239f2 /source/blender/python/api2_2x/Modifier.c | |
parent | 77f08ddc12870b90064273fa314d462ccdd473ba (diff) |
Object.c - made object action writable
gen_library - fixed bug, wasnt adjusting user counts properly.
bpy_data.c - added default new names for new data
Diffstat (limited to 'source/blender/python/api2_2x/Modifier.c')
-rw-r--r-- | source/blender/python/api2_2x/Modifier.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/source/blender/python/api2_2x/Modifier.c b/source/blender/python/api2_2x/Modifier.c index 67dd6c4fe8b..06c813e7820 100644 --- a/source/blender/python/api2_2x/Modifier.c +++ b/source/blender/python/api2_2x/Modifier.c @@ -267,32 +267,6 @@ PyTypeObject Modifier_Type = { NULL }; -/* -static int Modifier_set_object__internal(BPy_Modifier *self, PyObject *value, Object *ob, short type, short assign_self) -{ - Object *ob_new=NULL; - if (value == Py_None) { - ob = NULL; - } else if (BPy_Object_Check( value )) { - ob = ((( BPy_Object * )value)->object); - if( type != -1 && ob_new->type != type) { - return EXPP_ReturnIntError( PyExc_TypeError, - "this object is not a supported type" ); - } - - if( !assign_self && ob == self->object ) - return EXPP_ReturnIntError( PyExc_TypeError, - "Cannot assign the object to its self" ); - *ob = *ob_new; - } else { - return EXPP_ReturnIntError( PyExc_TypeError, - "Expected an Object or None value" ); - } - - return 0; -} -*/ - /*****************************************************************************/ /* Python BPy_Modifier methods: */ /*****************************************************************************/ |