[Bf-extensions-cvs] [f863a6f6] master: now you can make a linked group local without select it from list

Eugenio Pignataro noreply at git.blender.org
Mon May 15 22:37:55 CEST 2017


Commit: f863a6f6028bb871282f3d01eee0901174c9c8b4
Author: Eugenio Pignataro
Date:   Mon May 15 17:37:48 2017 -0300
Branches: master
https://developer.blender.org/rBACf863a6f6028bb871282f3d01eee0901174c9c8b4

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

===================================================================

M	oscurart_mesh_cache_tools.py

===================================================================

diff --git a/oscurart_mesh_cache_tools.py b/oscurart_mesh_cache_tools.py
index 08cda682..103a32af 100644
--- a/oscurart_mesh_cache_tools.py
+++ b/oscurart_mesh_cache_tools.py
@@ -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'}



More information about the Bf-extensions-cvs mailing list