Added missing settings to Modifiers (could not set on Render/Cage/Editmode :/)

added GPL header to Group.c
This commit is contained in:
Campbell Barton 2006-08-26 03:18:55 +00:00
parent e10613c7f7
commit b56047a65a
2 changed files with 47 additions and 3 deletions

@ -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 */

@ -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 );