Skip to content

Commit

Permalink
deleting unused operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Durman authored Mar 15, 2019
1 parent c0af4e8 commit 38803f9
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions ui/sv_panels.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,8 @@
from sverchok.core.update_system import process_from_nodes
from sverchok.utils import profile

objects_nodes_set = {'ObjectsNode', 'ObjectsNodeMK2', 'SvObjectsNodeMK3'}



class SverchokUpdateObjectIn(bpy.types.Operator):
"""Sverchok update all object in"""
bl_idname = "object.sverchok_update_object_in"
bl_label = "Sverchok update all"
bl_options = {'REGISTER', 'UNDO'}

def execute(self, context):
obj_nodes = []
for ng in bpy.data.node_groups:
if ng.bl_idname == 'SverchCustomTreeType':
if ng.sv_process:
nodes = []
for n in ng.nodes:
if n.bl_idname in objects_nodes_set:
nodes.append(n)
if nodes:
obj_nodes.append(nodes)

for n in obj_nodes:
process_from_nodes(n)
return {'FINISHED'}

objects_nodes_set = {'ObjectsNode', 'ObjectsNodeMK2', 'SvObjectsNodeMK3'}


class Sv3DViewObjInUpdater(bpy.types.Operator, object):
Expand Down Expand Up @@ -389,7 +365,6 @@ def draw(self, context):
Sv3DViewObjInUpdater,
SverchokToolsMenu,
Sv3DPanel,
SverchokUpdateObjectIn
]


Expand Down

0 comments on commit 38803f9

Please sign in to comment.