Skip to content

Add warning when marquee selecting with GeomSubset picking and no GeomSubsets are found - #475

Merged
debloip-adsk merged 1 commit into
devfrom
debloip/add-geomsubset-picking-warning
Jul 29, 2026
Merged

Add warning when marquee selecting with GeomSubset picking and no GeomSubsets are found#475
debloip-adsk merged 1 commit into
devfrom
debloip/add-geomsubset-picking-warning

Conversation

@debloip-adsk

Copy link
Copy Markdown
Collaborator

This has been a source of confusion a few times before, this should help avoid future instances.

@debloip-adsk debloip-adsk self-assigned this Jul 28, 2026
Comment on lines +2275 to +2291
// If a marquee selection is done with GeomSubset picking enabled, and there are more than 1 pick hits,
// only GeomSubsets will be considered for picking. If the user forgets they have GeomSubset picking on,
// this can lead to situations where they do a marquee select on USD data and nothing is selected.
// Warn the user about this so they are aware and potentially adjust their GeomSubset selection mode.
if (geomSubsetsPickMode == GeomSubsetsPickModeTokens->Faces
&& !singlePick
&& !pointSnappingActive
&& !outHits.empty()
&& _ufeSn && _ufeSn->size() == ufeSnSizeBefore
&& selectionList.length() == mayaSnLengthBefore)
{
MGlobal::displayWarning(
"Marquee selection found pick hits but no selectable data. Note that for USD data, marquee selections with "
"GeomSubset picking enabled only select GeomSubsets and not the base geometry prims. "
"Please adjust the USD GeomSubset selection mode if necessary.");
}

@debloip-adsk debloip-adsk Jul 28, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to explain this as best I could, let me know if anything is unclear :)

@debloip-adsk debloip-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 29, 2026
@debloip-adsk
debloip-adsk merged commit 57f5bf8 into dev Jul 29, 2026
11 checks passed
@debloip-adsk
debloip-adsk deleted the debloip/add-geomsubset-picking-warning branch July 29, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge Development process is finished, PR is ready for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants