mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
bim.remove_opening not to force Model/Body/Model_view
Now it won't be forcing Model/Body/Model_view representation on the objects if some other context is active for the object. Indirectly solves #3817
This commit is contained in:
@@ -147,14 +147,12 @@ class RemoveOpening(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
for building_element in decomposed_building_elements:
|
for building_element in decomposed_building_elements:
|
||||||
building_obj = tool.Ifc.get_object(building_element)
|
building_obj = tool.Ifc.get_object(building_element)
|
||||||
if building_obj and building_obj.data:
|
if building_obj and building_obj.data:
|
||||||
body = ifcopenshell.util.representation.get_representation(
|
representation = tool.Geometry.get_active_representation(building_obj)
|
||||||
building_element, "Model", "Body", "MODEL_VIEW"
|
|
||||||
)
|
|
||||||
blenderbim.core.geometry.switch_representation(
|
blenderbim.core.geometry.switch_representation(
|
||||||
tool.Ifc,
|
tool.Ifc,
|
||||||
tool.Geometry,
|
tool.Geometry,
|
||||||
obj=building_obj,
|
obj=building_obj,
|
||||||
representation=body,
|
representation=representation,
|
||||||
should_reload=True,
|
should_reload=True,
|
||||||
is_global=True,
|
is_global=True,
|
||||||
should_sync_changes_first=False,
|
should_sync_changes_first=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user