Group instancing usablitity issue: Hotkey SHIFT+O to set subsurf on/off
should not work if object had not a subsurf modifier before.
This commit is contained in:
@@ -2880,9 +2880,11 @@ void flip_subdivison(int level)
|
|||||||
for(base= G.scene->base.first; base; base= base->next) {
|
for(base= G.scene->base.first; base; base= base->next) {
|
||||||
if(((level==-1) && (TESTBASE(base))) || (TESTBASELIB(base))) {
|
if(((level==-1) && (TESTBASE(base))) || (TESTBASELIB(base))) {
|
||||||
object_flip_subdivison(base->object, &set, level, mode);
|
object_flip_subdivison(base->object, &set, level, mode);
|
||||||
|
|
||||||
if(base->object->dup_group) {
|
if(base->object->dup_group) {
|
||||||
GroupObject *go;
|
GroupObject *go;
|
||||||
for(go= base->object->dup_group->gobject.first; go; go= go->next)
|
for(go= base->object->dup_group->gobject.first; go; go= go->next)
|
||||||
|
if( modifiers_findByType(go->ob, eModifierType_Subsurf)) /* only when exists */
|
||||||
object_flip_subdivison(go->ob, &set, level, mode);
|
object_flip_subdivison(go->ob, &set, level, mode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user