mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Rename bim_boundary_properties -> BIMBoundaryProperties for consistency
This commit is contained in:
@@ -49,9 +49,9 @@ classes = (
|
|||||||
|
|
||||||
def register():
|
def register():
|
||||||
bpy.types.Scene.BIMBoundaryProperties = bpy.props.PointerProperty(type=prop.BIMBoundaryProperties)
|
bpy.types.Scene.BIMBoundaryProperties = bpy.props.PointerProperty(type=prop.BIMBoundaryProperties)
|
||||||
bpy.types.Object.bim_boundary_properties = bpy.props.PointerProperty(type=prop.BIMObjectBoundaryProperties)
|
bpy.types.Object.BIMBoundaryProperties = bpy.props.PointerProperty(type=prop.BIMObjectBoundaryProperties)
|
||||||
|
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
del bpy.types.Scene.BIMBoundaryProperties
|
del bpy.types.Scene.BIMBoundaryProperties
|
||||||
del bpy.types.Object.bim_boundary_properties
|
del bpy.types.Object.BIMBoundaryProperties
|
||||||
|
|||||||
@@ -354,7 +354,7 @@ class EnableEditingBoundary(bpy.types.Operator):
|
|||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
bprops = context.active_object.bim_boundary_properties
|
bprops = context.active_object.BIMBoundaryProperties
|
||||||
bprops.is_editing = True
|
bprops.is_editing = True
|
||||||
boundary = tool.Ifc.get_entity(context.active_object)
|
boundary = tool.Ifc.get_entity(context.active_object)
|
||||||
for ifc_attribute, blender_property in EDITABLE_ATTRIBUTES.items():
|
for ifc_attribute, blender_property in EDITABLE_ATTRIBUTES.items():
|
||||||
@@ -373,7 +373,7 @@ class DisableEditingBoundary(bpy.types.Operator):
|
|||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
bprops = context.active_object.bim_boundary_properties
|
bprops = context.active_object.BIMBoundaryProperties
|
||||||
bprops.is_editing = False
|
bprops.is_editing = False
|
||||||
for ifc_attribute, blender_property in EDITABLE_ATTRIBUTES.items():
|
for ifc_attribute, blender_property in EDITABLE_ATTRIBUTES.items():
|
||||||
setattr(bprops, blender_property, None)
|
setattr(bprops, blender_property, None)
|
||||||
@@ -386,7 +386,7 @@ class EditBoundaryAttributes(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
|
|
||||||
def _execute(self, context):
|
def _execute(self, context):
|
||||||
bprops = context.active_object.bim_boundary_properties
|
bprops = context.active_object.BIMBoundaryProperties
|
||||||
boundary = tool.Ifc.get_entity(context.active_object)
|
boundary = tool.Ifc.get_entity(context.active_object)
|
||||||
attributes = dict()
|
attributes = dict()
|
||||||
for ifc_attribute, blender_property in EDITABLE_ATTRIBUTES.items():
|
for ifc_attribute, blender_property in EDITABLE_ATTRIBUTES.items():
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class BIM_PT_Boundary(Panel):
|
|||||||
props = context.active_object.BIMObjectProperties
|
props = context.active_object.BIMObjectProperties
|
||||||
ifc_file = tool.Ifc.get()
|
ifc_file = tool.Ifc.get()
|
||||||
boundary = ifc_file.by_id(props.ifc_definition_id)
|
boundary = ifc_file.by_id(props.ifc_definition_id)
|
||||||
self.bprops = context.active_object.bim_boundary_properties
|
self.bprops = context.active_object.BIMBoundaryProperties
|
||||||
if self.bprops.is_editing:
|
if self.bprops.is_editing:
|
||||||
row = self.layout.row(align=True)
|
row = self.layout.row(align=True)
|
||||||
row.operator("bim.edit_boundary_attributes", icon="CHECKMARK", text="Save Attributes")
|
row.operator("bim.edit_boundary_attributes", icon="CHECKMARK", text="Save Attributes")
|
||||||
|
|||||||
Reference in New Issue
Block a user