Enable edit forwarding on proxy shape stages.#4481
Conversation
|
|
||
|
|
||
| find_path(USDEDITFORWARD_INCLUDE_DIR | ||
| find_path(ADSKUSDEDITFORWARD_INCLUDE_DIR |
There was a problem hiding this comment.
As per comment in last PR, aligning with the CC
| set_property(TEST ${target} APPEND PROPERTY LABELS MayaUsd) | ||
| else() | ||
| # If MAYAUSD_FORCE_EF_TEST is set to 1, fail the build when edit forwarding is not found | ||
| if (DEFINED ENV{MAYAUSD_FORCE_EF_TEST} AND "$ENV{MAYAUSD_FORCE_EF_TEST}" STREQUAL "1") |
There was a problem hiding this comment.
Same pattern was what we did for the CC
019c309 to
fed75b3
Compare
|
|
||
| void MayaUsdEditForwardHost::ExecuteInCmd(std::function<void()> callback, bool immediate) | ||
| { | ||
| if (immediate) { |
There was a problem hiding this comment.
In the future this will need to be wrapped in a undoable command, hence the name. Undo/redo not supported yet
|
I'll need to update the CC before merging this, but code is ready for review. |
seando-adsk
left a comment
There was a problem hiding this comment.
Overall looks good, just a couple of naming and cmake related changes.
| PRIVATE | ||
| buildInfo.cpp | ||
| debugCodes.cpp | ||
| MayaUsdEditForwardHost.cpp |
There was a problem hiding this comment.
Typically what we do is use the cmake define to conditionally include the entire file. For example see.
| // layers, based on configurable rules authored on the stage's root layer. | ||
| static std::once_flag initHostOnce; | ||
| std::call_once(initHostOnce, []() { | ||
| // The host implements some DCC specific fonctionality for edit forwarding. |
There was a problem hiding this comment.
Minor typo
| // The host implements some DCC specific fonctionality for edit forwarding. | |
| // The host implements some DCC specific functionality for edit forwarding. |
|
Will close/reopen to try and get the security scan going again. |
No description provided.