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

SceneViewUI LookThrough menu : Defer camera and light set computation until required #2567

Merged
merged 1 commit into from May 17, 2018

Conversation

andrewkaufman
Copy link
Contributor

Large production scenes can have expensive set computations, and several uses of the LookThrough tool menu don't require that expense. Hopefully the first commit is non-contentious. The 2nd commit is more-so, but I'd argue the excessively permissive drag/drop is worth the computation savings, especially now that we have a visual indication in the viewer itself:

https://github.com/GafferHQ/gaffer/blob/16a970c425bc5c01ef25381215638900a37c020a/sphereCam.png

Large production scenes can have expensive set computations, and several uses of the LookThrough tool menu don't require that expense.

Note this also makes the LookThrough tool more permissive, in that it accepts drop events from objects that can't be "looked through". Fortunately the Viewer play along and presents the error in a clear manner.
@andrewkaufman
Copy link
Contributor Author

I've removed the unnecessary loop, and squash rebased ontop of master.

@andrewkaufman andrewkaufman merged commit 2bb664d into GafferHQ:master May 17, 2018
@andrewkaufman andrewkaufman deleted the cameraMenu branch May 17, 2018 21:08
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.

None yet

1 participant