Repository navigation
Inspector : Fix editing of plugs with keyframes - #7293
Open
johnhaddon wants to merge 2 commits into
Open
johnhaddon wants to merge 2 commits into
johnhaddon wants to merge 2 commits into
Conversation
This lets us remove a bunch of code, and fixes the editing of animation viewed through a timewarp (the tool was making keys at the current time, whereas the Inspector correctly makes edits at the upstream (warped) time).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes
Inspector::edit()so it can make keyframes as necessary, and then updates LightTool to useInspector::edit()instead of its own code.In doing this I came across a bit of a discrepancy in PlugAlgo. To date, we've paired a call to
setValueOrInsertKeyFromData()withcanSetValueFromData(), but the latter supports a wider variety of type coercions than the former. I have a work-in-progress commit (not in this PR) that addscanSetValueOrInsertKeyFromData()with the appropriate logic, but I'm not sure that's actually what we want. Perhaps we should makesetValueOrInsertKeyFromData()support the full set of coercions instead? On a related note,setValueOrInsertKeyFromData()looks like it doesn't support CompoundNumericPlug, which would also require a bit of refactoring to get right. I'm calling that out of scope for this PR, but can do it as a follow-up once we've discussed what we want.