diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-08-26 07:18:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-08-26 07:18:55 +0400 |
commit | b56047a65ac17e04832438f85fd4a7f6b95b8234 (patch) | |
tree | 284e4c68711dcc98772e630f0b970b79c9eef02c /source/blender/python/api2_2x/Modifier.c | |
parent | e10613c7f7bbf501803665246ccbc0002b47b2f2 (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.c | 20 |
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 ); |