Skip to content
Snippets Groups Projects
Commit 95df6a6a authored by Eugenio Pignataro's avatar Eugenio Pignataro
Browse files

Improve: Linked To Local leave modifiers

parent d45f0201
Branches
Tags
No related merge requests found
...@@ -228,12 +228,14 @@ def OscLinkedGroupToLocal(): ...@@ -228,12 +228,14 @@ def OscLinkedGroupToLocal():
for ob in GROBJS: for ob in GROBJS:
NEWGROUP.objects.link(ob) NEWGROUP.objects.link(ob)
NEWOBJ.append(ob) NEWOBJ.append(ob)
"""
for ob in NEWOBJ: for ob in NEWOBJ:
if ob.type == "MESH": if ob.type == "MESH":
if len(ob.modifiers): if len(ob.modifiers):
for MODIFIER in ob.modifiers[:]: for MODIFIER in ob.modifiers[:]:
if MODIFIER.type == "SUBSURF" or MODIFIER.type == "MASK": if MODIFIER.type == "SUBSURF" or MODIFIER.type == "MASK":
ob.modifiers.remove(MODIFIER) ob.modifiers.remove(MODIFIER)
"""
class OscGroupLinkedToLocal(bpy.types.Operator): class OscGroupLinkedToLocal(bpy.types.Operator):
bl_idname = "group.linked_group_to_local" bl_idname = "group.linked_group_to_local"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment