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

now you can make a linked group local without select it from list

parent 85e50368
Branches
Tags
No related merge requests found
......@@ -294,14 +294,7 @@ def OscLinkedGroupToLocal():
for ob in GROBJS:
NEWGROUP.objects.link(ob)
NEWOBJ.append(ob)
"""
for ob in NEWOBJ:
if ob.type == "MESH":
if len(ob.modifiers):
for MODIFIER in ob.modifiers[:]:
if MODIFIER.type == "SUBSURF" or MODIFIER.type == "MASK":
ob.modifiers.remove(MODIFIER)
"""
class OscGroupLinkedToLocal(bpy.types.Operator):
bl_idname = "group.linked_group_to_local"
......@@ -309,10 +302,6 @@ class OscGroupLinkedToLocal(bpy.types.Operator):
bl_description = "Group Linked To Local"
bl_options = {'REGISTER', 'UNDO'}
@classmethod
def poll(cls, context):
return(bpy.context.scene.pc_pc2_group != "")
def execute(self, context):
OscLinkedGroupToLocal()
return {'FINISHED'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment