Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/ansys/acp/core/_tree_objects/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ def store(self: Self, parent: TreeObject) -> None:
path_values = [collection_path.value] + [
path.value for _, _, path in linked_path_fields(self._pb_object.properties)
]
# filter out empty paths
path_values = [path for path in path_values if path]

# Since the path starts with 'model/<model_uuid>', the objects belong to
# the same model iff they share at least the first two parts.
if len(to_parts(common_path(*path_values))) < 2:
Expand Down