Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -722,11 +722,17 @@ def _on_scene_selection_changed(self, *args: Any) -> None:
return

selection = shifter_utils.get_selection()
if not selection:

# -- Filter out component selections
dag_selection = []
for item in selection:
if hasattr(item, "isDag") and item.isDag():
dag_selection.append(item)
if not dag_selection:
return

# -- Take the last selected object
last_item = selection[-1]
last_item = dag_selection[-1]

# -- Try to find the component root for this object
comp_root = shifter_utils.find_component_root(last_item)
Expand Down