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

HYDRA-1036 : Refactor Repr Selector Scene Index to send Dirty Notification #153

Conversation

roopavr-adsk
Copy link
Contributor

The change avoids removal/addition of Hydra prims and instead allowing dirty notification being sent to Hydra.

@roopavr-adsk roopavr-adsk self-assigned this Jul 23, 2024
Copy link
Collaborator

@ppt-adsk ppt-adsk left a comment

Choose a reason for hiding this comment

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

Looks good, but needs a test to demonstrate that no notifications are sent for prims added / removed, and that the only notifications are for dirtying, with the appropriate data source locators.

ppt-adsk
ppt-adsk previously approved these changes Jul 30, 2024
SceneIndexNotificationsAccumulator notifsAccumulator(sceneIndices.front());

// Set wireframeOnShaded mode
MString wireframeOnCmd = "select -cl; modelEditor -e -wireframeOnShaded 1 modelPanel4; refresh;";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Bit of a nit-pick, and there's nothing really wrong with this, but you could have done the

select -cl; modelEditor -e -wireframeOnShaded 1 modelPanel4

(the Python equivalent of it) in testSceneIndexDirtying.py, and here used the C++ API:

Suggested change
MString wireframeOnCmd = "select -cl; modelEditor -e -wireframeOnShaded 1 modelPanel4; refresh;";
M3dView view;
M3dView::getM3dViewFromModelPanel(MString("modelPanel4"), view);
view.refresh(/* all = */ true);

@roopavr-adsk roopavr-adsk merged commit e42b8e7 into dev Jul 30, 2024
10 of 11 checks passed
@roopavr-adsk roopavr-adsk deleted the roopavr/HYDRA-1036/refactorReprSceneIndexForDirtyingNotification branch July 30, 2024 18:50
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.

2 participants