From a8c8aee7c66fecd3ae5656ec6db0c49f4f799fa0 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 3 Dec 2007 16:21:16 +0000 Subject: [PATCH] Group instancing usablitity issue: Hotkey SHIFT+O to set subsurf on/off should not work if object had not a subsurf modifier before. --- source/blender/src/editobject.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 8f3d9779a0d..1bf3fe7ea72 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -2880,10 +2880,12 @@ void flip_subdivison(int level) for(base= G.scene->base.first; base; base= base->next) { if(((level==-1) && (TESTBASE(base))) || (TESTBASELIB(base))) { object_flip_subdivison(base->object, &set, level, mode); + if(base->object->dup_group) { GroupObject *go; for(go= base->object->dup_group->gobject.first; go; go= go->next) - object_flip_subdivison(go->ob, &set, level, mode); + if( modifiers_findByType(go->ob, eModifierType_Subsurf)) /* only when exists */ + object_flip_subdivison(go->ob, &set, level, mode); } } }