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

Viewport hide objects #5381

Merged
merged 2 commits into from
Jul 11, 2023
Merged

Conversation

ericmehl
Copy link
Collaborator

@ericmehl ericmehl commented Jul 5, 2023

This adds a new shortcut to the 3d viewer, Ctrl + H, to turn off visibility of the selected objects.

It also fixes a bug that left the enabled plug of some of the edit scope processors disconnected from their parent node. These should be connected to ensure disabled state is propagated.

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have tested my change(s) in the test suite, and added new test cases where necessary.
  • My code follows the Gaffer project's prevailing coding style and conventions.

Copy link
Member

@johnhaddon johnhaddon left a comment

Choose a reason for hiding this comment

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

Nice one - thanks Eric. No need to do the tweaks I've requested as fixup commits - it's all small enough that we might as well get it all squashed and ready to merge.
Cheers...
John

python/GafferSceneUI/EditScopeUI.py Outdated Show resolved Hide resolved
python/GafferSceneUI/EditScopeUI.py Outdated Show resolved Hide resolved
@ericmehl
Copy link
Collaborator Author

ericmehl commented Jul 6, 2023

Great! I fixed up the comments and squashed them down to ed1b6a5. Should be good to go I think.

Copy link
Member

@johnhaddon johnhaddon left a comment

Choose a reason for hiding this comment

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

Sorry Eric, I just spotted one last thing that I should have seen the first time, and we also need to rejig Changes.md to account for the latest release. Details inline...

Changes.md Outdated Show resolved Hide resolved
python/GafferSceneUI/EditScopeUI.py Outdated Show resolved Hide resolved
The tweak nodes should have their `enabled` plugs driven by the scene processor `enabled` plug. Previously we were only setting their value at creation time, and to a `Plug` object which will always evaluate to `True`.
@ericmehl
Copy link
Collaborator Author

ericmehl commented Jul 7, 2023

A couple more tweaks taken care of and ready for a new look and hopefully merging!

@johnhaddon johnhaddon merged commit 4b1b107 into GafferHQ:1.2_maintenance Jul 11, 2023
4 checks passed
@johnhaddon
Copy link
Member

Thanks!

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