mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
Fix old bug with collapsing/expanding drawing list #6969
It was checking `is_expanded` for all drawings items, though it should have checked just target view items.
This commit is contained in:
@@ -936,7 +936,7 @@ class Drawing(bonsai.core.tool.Drawing):
|
||||
@classmethod
|
||||
def import_drawings(cls) -> None:
|
||||
props = tool.Drawing.get_document_props()
|
||||
expanded_target_views = {d.target_view for d in props.drawings if d.is_expanded}
|
||||
expanded_target_views = {d.target_view for d in props.drawings if not d.is_drawing and d.is_expanded}
|
||||
if not hasattr(cls, "drawing_selected_states"):
|
||||
cls.drawing_selected_states = {}
|
||||
cls.drawing_selected_states.update({d.ifc_definition_id: d.is_selected for d in props.drawings if d.is_drawing})
|
||||
|
||||
Reference in New Issue
Block a user