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:
authorCampbell Barton <ideasman42@gmail.com>2006-08-26 07:18:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-08-26 07:18:55 +0400
commitb56047a65ac17e04832438f85fd4a7f6b95b8234 (patch)
tree284e4c68711dcc98772e630f0b970b79c9eef02c /source/blender/python/api2_2x/Modifier.c
parente10613c7f7bbf501803665246ccbc0002b47b2f2 (diff)
Added missing settings to Modifiers (could not set on Render/Cage/Editmode :/)
added GPL header to Group.c
Diffstat (limited to 'source/blender/python/api2_2x/Modifier.c')
-rw-r--r--source/blender/python/api2_2x/Modifier.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Modifier.c b/source/blender/python/api2_2x/Modifier.c
index 80d5c565087..973d00c5794 100644
--- a/source/blender/python/api2_2x/Modifier.c
+++ b/source/blender/python/api2_2x/Modifier.c
@@ -20,9 +20,6 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
- * All rights reserved.
- *
* This is a new part of Blender.
*
* Contributor(s): Ken Hughes, Campbell Barton
@@ -718,6 +715,23 @@ static int Modifier_setData( BPy_Modifier * self, PyObject * key,
"This modifier has been removed!" );
key_int = PyInt_AsLong( key );
+
+ /* Chach for standard modifier settings */
+ switch( key_int ) {
+ case EXPP_MOD_RENDER:
+ return EXPP_setBitfield( arg, &self->md->mode,
+ eModifierMode_Render, 'h' );
+ case EXPP_MOD_REALTIME:
+ return EXPP_setBitfield( arg, &self->md->mode,
+ eModifierMode_Realtime, 'h' );
+ case EXPP_MOD_EDITMODE:
+ return EXPP_setBitfield( arg, &self->md->mode,
+ eModifierMode_Editmode, 'h' );
+ case EXPP_MOD_ONCAGE:
+ return EXPP_setBitfield( arg, &self->md->mode,
+ eModifierMode_OnCage, 'h' );
+ }
+
switch( self->md->type ) {
case eModifierType_Subsurf:
return subsurf_setter( self, key_int, arg );