Skip to content

Enable edit forwarding on proxy shape stages.#4481

Merged
seando-adsk merged 4 commits intodevfrom
deboisj/edit_forward_first_steps
Feb 18, 2026
Merged

Enable edit forwarding on proxy shape stages.#4481
seando-adsk merged 4 commits intodevfrom
deboisj/edit_forward_first_steps

Conversation

@deboisj
Copy link
Copy Markdown
Collaborator

@deboisj deboisj commented Feb 9, 2026

No description provided.



find_path(USDEDITFORWARD_INCLUDE_DIR
find_path(ADSKUSDEDITFORWARD_INCLUDE_DIR
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per comment in last PR, aligning with the CC

Comment thread test/lib/CMakeLists.txt
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")
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same pattern was what we did for the CC

@deboisj deboisj force-pushed the deboisj/edit_forward_first_steps branch from 019c309 to fed75b3 Compare February 9, 2026 19:43

void MayaUsdEditForwardHost::ExecuteInCmd(std::function<void()> callback, bool immediate)
{
if (immediate) {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future this will need to be wrapped in a undoable command, hence the name. Undo/redo not supported yet

@deboisj deboisj self-assigned this Feb 9, 2026
@deboisj
Copy link
Copy Markdown
Collaborator Author

deboisj commented Feb 9, 2026

I'll need to update the CC before merging this, but code is ready for review.

Comment thread lib/mayaUsd/base/MayaUsdEditForwardHost.cpp Outdated
Comment thread lib/mayaUsd/base/MayaUsdEditForwardHost.h
Comment thread lib/mayaUsd/nodes/proxyShapeBase.cpp
Comment thread lib/mayaUsd/base/MayaUsdEditForwardHost.cpp Outdated
pierrebai-adsk
pierrebai-adsk previously approved these changes Feb 9, 2026
Copy link
Copy Markdown
Collaborator

@seando-adsk seando-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, just a couple of naming and cmake related changes.

Comment thread lib/mayaUsd/base/CMakeLists.txt Outdated
PRIVATE
buildInfo.cpp
debugCodes.cpp
MayaUsdEditForwardHost.cpp
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically what we do is use the cmake define to conditionally include the entire file. For example see.

Comment thread lib/mayaUsd/base/MayaUsdEditForwardHost.h
Comment thread lib/mayaUsd/nodes/proxyShapeBase.cpp Outdated
// 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.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo

Suggested change
// The host implements some DCC specific fonctionality for edit forwarding.
// The host implements some DCC specific functionality for edit forwarding.

@deboisj deboisj assigned deboisj and unassigned deboisj Feb 17, 2026
@deboisj
Copy link
Copy Markdown
Collaborator Author

deboisj commented Feb 18, 2026

Will close/reopen to try and get the security scan going again.

@deboisj deboisj closed this Feb 18, 2026
@deboisj deboisj reopened this Feb 18, 2026
@seando-adsk seando-adsk added the shared_components Shared Components (Max / Maya) label Feb 18, 2026
@deboisj deboisj added the ready-for-merge Development process is finished, PR is ready for merge label Feb 18, 2026
@seando-adsk seando-adsk merged commit 2d8f4a7 into dev Feb 18, 2026
11 checks passed
@seando-adsk seando-adsk deleted the deboisj/edit_forward_first_steps branch February 18, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge Development process is finished, PR is ready for merge shared_components Shared Components (Max / Maya)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants