Skip to content

Shifter: Guide Explorer: Fix selection sync error on component selection#642

Open
zebraed wants to merge 1 commit into
mgear-dev:masterfrom
zebraed:fix-syncsel-issue
Open

Shifter: Guide Explorer: Fix selection sync error on component selection#642
zebraed wants to merge 1 commit into
mgear-dev:masterfrom
zebraed:fix-syncsel-issue

Conversation

@zebraed

@zebraed zebraed commented Jul 3, 2026

Copy link
Copy Markdown

Description of Changes

Fixes an error in Guide Explorer when Sync Selection is enabled and the Maya selection includes components (vertices, nurbsCVs etc. ).

With selection sync on, _on_scene_selection_changed passes the current Maya selection to find_component_root(). When the last selected item is a component (e.g. MeshVertex), find_component_root() calls hasAttr() on an object that does not support it, raising: AttributeError: 'MeshVertex' object has no attribute 'hasAttr'

Filtered the selection to DAG objects only.
Changes are limited to guide_tree_widget.py.

Testing Done

Maya 2027
mGear 5.3.3

Related Issue(s)

N/A

thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant