diff --git a/source/blender/python/api2_2x/Group.c b/source/blender/python/api2_2x/Group.c index 6cf10ce40ec..9929d5d1e62 100755 --- a/source/blender/python/api2_2x/Group.c +++ b/source/blender/python/api2_2x/Group.c @@ -1,3 +1,33 @@ +/* + * ***** BEGIN GPL/BL DUAL LICENSE BLOCK ***** + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. The Blender + * Foundation also sells licenses for use in proprietary software under + * the Blender License. See http://www.blender.org/BL/ for information + * about this. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * 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): Campbell Barton + * + * ***** END GPL/BL DUAL LICENSE BLOCK ***** + */ + #include "MEM_guardedalloc.h" #include "Group.h" /* This must come first */ 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 );