Minor fix

This commit is contained in:
Dion Moult
2021-07-03 18:46:17 +10:00
parent 4ff60553cc
commit 85bd616f6e
3 changed files with 5 additions and 9 deletions
+1 -3
View File
@@ -30,9 +30,7 @@ class SvIfcCreateFile(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper.S
self.outputs.new("SvVerticesSocket", "file")
def draw_buttons(self, context, layout):
op = layout.operator("node.sv_ifc_create_file_refresh", icon="FILE_REFRESH", text="Refresh")
op.tree_name = self.id_data.name
op.node_name = self.name
self.wrapper_tracked_ui_draw_op(layout, "node.sv_ifc_create_file_refresh", icon="FILE_REFRESH", text="Refresh")
def process(self):
self.sv_input_names = ["schema"]
+1 -3
View File
@@ -33,9 +33,7 @@ class SvIfcCreateShape(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper.
self.inputs.new("SvStringsSocket", "entity").prop_name = "entity"
def draw_buttons(self, context, layout):
op = layout.operator("node.sv_ifc_create_shape_refresh", icon="FILE_REFRESH", text="Refresh")
op.tree_name = self.id_data.name
op.node_name = self.name
self.wrapper_tracked_ui_draw_op(layout, "node.sv_ifc_create_shape_refresh", icon="FILE_REFRESH", text="Refresh")
def process(self):
self.sv_input_names = ["file", "entity"]
@@ -32,9 +32,9 @@ class SvIfcSelectBlenderObjects(bpy.types.Node, SverchCustomTreeNode, ifcsvercho
self.inputs.new("SvStringsSocket", "entities").prop_name = "entities"
def draw_buttons(self, context, layout):
op = layout.operator("node.sv_ifc_select_blender_objects_refresh", icon="FILE_REFRESH", text="Refresh")
op.tree_name = self.id_data.name
op.node_name = self.name
self.wrapper_tracked_ui_draw_op(
layout, "node.sv_ifc_select_blender_objects_refresh", icon="FILE_REFRESH", text="Refresh"
)
def process(self):
self.file = IfcStore.get_file()