mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
Previous commit should only apply to LAYER3 objects, since extrusion depth still works for LAYER2 objects.
This commit is contained in:
@@ -407,7 +407,7 @@ class EditItemUI:
|
|||||||
parent_element = tool.Ifc.get_entity(props.representation_obj)
|
parent_element = tool.Ifc.get_entity(props.representation_obj)
|
||||||
if parent_element:
|
if parent_element:
|
||||||
material_usage = tool.Model.get_usage_type(parent_element)
|
material_usage = tool.Model.get_usage_type(parent_element)
|
||||||
has_layer_set_usage = material_usage in ("LAYER2", "LAYER3")
|
has_layer_set_usage = material_usage == "LAYER3"
|
||||||
|
|
||||||
if AuthoringData.data["is_representation_item_swept_solid"]:
|
if AuthoringData.data["is_representation_item_swept_solid"]:
|
||||||
# TODO: support EndSweptArea for IfcRevolvedAreaSolidTapered,
|
# TODO: support EndSweptArea for IfcRevolvedAreaSolidTapered,
|
||||||
@@ -422,7 +422,7 @@ class EditItemUI:
|
|||||||
op.profile_id = int(mesh_props.item_profile)
|
op.profile_id = int(mesh_props.item_profile)
|
||||||
|
|
||||||
for item_attribute in mesh_props.item_attributes:
|
for item_attribute in mesh_props.item_attributes:
|
||||||
# Skip depth attribute for objects with layer set usage
|
# Skip depth attribute for LAYER3 objects with layer set usage
|
||||||
if has_layer_set_usage and item_attribute.name.lower() == "depth":
|
if has_layer_set_usage and item_attribute.name.lower() == "depth":
|
||||||
continue
|
continue
|
||||||
row = cls.layout.row()
|
row = cls.layout.row()
|
||||||
|
|||||||
Reference in New Issue
Block a user