mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +00:00
Minor bug fixes with error message when selecting objects in layers without objects
This commit is contained in:
@@ -1766,7 +1766,8 @@ class EnableEditingRepresentationItems(bpy.types.Operator, Operator):
|
|||||||
for style in styles:
|
for style in styles:
|
||||||
if style.is_a("IfcSurfaceStyle"):
|
if style.is_a("IfcSurfaceStyle"):
|
||||||
new.surface_style = style.Name or "Unnamed"
|
new.surface_style = style.Name or "Unnamed"
|
||||||
break
|
elif inverse.is_a("IfcPresentationLayerAssignment"):
|
||||||
|
new.layer = inverse.Name or "Unnamed"
|
||||||
|
|
||||||
|
|
||||||
class DisableEditingRepresentationItems(bpy.types.Operator, Operator):
|
class DisableEditingRepresentationItems(bpy.types.Operator, Operator):
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class EnableEditingLayer(bpy.types.Operator):
|
|||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
props = context.scene.BIMLayerProperties
|
props = context.scene.BIMLayerProperties
|
||||||
props.layer_attributes.clear()
|
props.layer_attributes.clear()
|
||||||
blenderbim.bim.helper.import_attributes(tool.Ifc.get().by_id(self.layer), props.layer_attributes)
|
blenderbim.bim.helper.import_attributes2(tool.Ifc.get().by_id(self.layer), props.layer_attributes)
|
||||||
props.active_layer_id = self.layer
|
props.active_layer_id = self.layer
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user