-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TypedObjectPlugBinding : Add CompoundData->CompoundObject conversion
This allows `CompoundObjectPlug.setValue( compoundData )` to work, meaning we can remove the `attributesCompatibility.py` shim that was doing this manually for just `Attributes.extraAttributes`. What I don't like about this is the mismatch between the C++ and Python APIs : it's still not possible to call `CompoundObjectPlug::setValue( CompoundData )` in C++. And that's also mismatched with `CompoundObjectPlug::setFrom()` which is implemented to allow connections from CompoundDataPlug. Still, it seems like progress compared to the compatibility shim. The immediate motivation for this is that it's not currently possible to have `userDefault` metadata for a CompoundObjectPlug, because metadata values must all be `Data`. This allows the registation of a CompoundData value which is converted to a CompoundObject when applied to the plug.
- Loading branch information
1 parent
6a6b20c
commit 0723cc3
Showing
4 changed files
with
58 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.