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:
authorTon Roosendaal <ton@blender.org>2007-12-03 19:21:16 +0300
committerTon Roosendaal <ton@blender.org>2007-12-03 19:21:16 +0300
commita8c8aee7c66fecd3ae5656ec6db0c49f4f799fa0 (patch)
treef2b6ba1085bcb99bdb38315829df270aaf45509f /source/blender/src/editobject.c
parent0412d623097b15dd5e63a500afb3ed2c56b2f20b (diff)
Group instancing usablitity issue: Hotkey SHIFT+O to set subsurf on/off
should not work if object had not a subsurf modifier before.
Diffstat (limited to 'source/blender/src/editobject.c')
-rw-r--r--source/blender/src/editobject.c4
1 files changed, 3 insertions, 1 deletions
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);
}
}
}