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

Rename UndoContext -> UndoScope #2049

Merged
merged 4 commits into from Apr 18, 2017

Conversation

johnhaddon
Copy link
Member

The discussion over the naming of Context::EditableScope reminded me that we've been meaning to change this misleading UndoContext name for a long time now. It has nothing to do with Contexts in the Gaffer sense, and the UndoScope name makes it much clearer that it behaves like other scopes in gaffer.

This is a binary and source compatibility break, but I've included a startup file which provides temporary backwards compatibility for python scripts. In practice, I believe the IE codebase only has a single use of UndoContext from C++, in IEMayaRendering::PaintCommand. If it's not possible to update this I could provide a compatibility header, but I'm hoping that won't be necessary...

This avoids confusion with the Context class, and brings the name into line with other scoping classes like `DirtyPropagationScope` and `Context::EditableScope`.

Breaking change :

- Renamed UndoContext UndoScope
This allows old python scripts to continue to function until they are updated.
@andrewkaufman andrewkaufman merged commit 8a532be into GafferHQ:master Apr 18, 2017
@andrewkaufman
Copy link
Contributor

@danieldresser or @mattigruener can you fixup the IERendering bit?

@johnhaddon johnhaddon deleted the renameUndoContext branch May 3, 2017 14:26
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

2 participants