assign/unassign resource operators tooltips

also removed couple unused properties
This commit is contained in:
Andrej730
2024-05-23 18:31:51 +05:00
parent 7f2c7eb467
commit 1a4e4678d0
2 changed files with 2 additions and 3 deletions
@@ -29,7 +29,6 @@ def refresh():
class ResourceData: class ResourceData:
data = {} data = {}
is_loaded = False is_loaded = False
cost_values = {}
@classmethod @classmethod
def load(cls): def load(cls):
@@ -128,9 +128,9 @@ class ContractResource(bpy.types.Operator):
class AssignResource(bpy.types.Operator, tool.Ifc.Operator): class AssignResource(bpy.types.Operator, tool.Ifc.Operator):
bl_idname = "bim.assign_resource" bl_idname = "bim.assign_resource"
bl_label = "Assign Resource" bl_label = "Assign Resource"
bl_description = "Assign resource to the selected objects"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
resource: bpy.props.IntProperty() resource: bpy.props.IntProperty()
related_object: bpy.props.StringProperty()
def _execute(self, context): def _execute(self, context):
core.assign_resource(tool.Ifc, tool.Spatial, resource=tool.Ifc.get().by_id(self.resource)) core.assign_resource(tool.Ifc, tool.Spatial, resource=tool.Ifc.get().by_id(self.resource))
@@ -139,9 +139,9 @@ class AssignResource(bpy.types.Operator, tool.Ifc.Operator):
class UnassignResource(bpy.types.Operator, tool.Ifc.Operator): class UnassignResource(bpy.types.Operator, tool.Ifc.Operator):
bl_idname = "bim.unassign_resource" bl_idname = "bim.unassign_resource"
bl_label = "Unassign Resource" bl_label = "Unassign Resource"
bl_description = "Unassign resource from the selected objects"
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
resource: bpy.props.IntProperty() resource: bpy.props.IntProperty()
related_object: bpy.props.StringProperty()
def _execute(self, context): def _execute(self, context):
core.unassign_resource(tool.Ifc, tool.Spatial, resource=tool.Ifc.get().by_id(self.resource)) core.unassign_resource(tool.Ifc, tool.Spatial, resource=tool.Ifc.get().by_id(self.resource))