Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug with visibility determination #1479

Merged
merged 2 commits into from
Jun 12, 2021

Conversation

ysiewappl
Copy link
Contributor

Hi all:

This small PR fixes an issue where if you have the Draw Overrides option enabled on a DAG node set to template instead of using the one in the Display rollout, the utility function in Maya-USD would report it to be renderable instead of not. This was causing issues for us internally in our own internal chaser plugins when determining visibility state.

Please review and raise any concerns.

@kxl-adsk kxl-adsk added the import-export Related to Import and/or Export label Jun 9, 2021
const MDAGDrawOverrideInfo drawOverrideInfo = dagPath.getDrawOverrideInfo();
if (drawOverrideInfo.fOverrideEnabled && drawOverrideInfo.fDisplayType == MDAGDrawOverrideInfo::kDisplayTypeTemplate) {
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Lgtm! So to be clear, previously this function didn't return the state correctly when the draw override's display type was set to "Template".

image

@kxl-adsk
Copy link

@ysiewappl Please fix clang-format so we can start PF for this change.

@kxl-adsk kxl-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jun 12, 2021
@kxl-adsk kxl-adsk merged commit 06ffd43 into Autodesk:dev Jun 12, 2021
@ysiewappl ysiewappl deleted the visibility-determination-bug branch June 15, 2021 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
import-export Related to Import and/or Export 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.

4 participants