Skip to content

Keep session data in the session layer #4278

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

pierrebai-adsk
Copy link
Collaborator

  • Modify the parent and duplicate commands to keep data that is in the session in the session layer.
  • Added a unit test to verify this.

@pierrebai-adsk pierrebai-adsk added bug Something isn't working adsk Related to Autodesk plugin labels Jul 25, 2025
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-2306/reparent-session-data branch from 9c5e8cb to 3245d80 Compare July 25, 2025 15:17
@pierrebai-adsk pierrebai-adsk self-assigned this Jul 25, 2025
@pierrebai-adsk pierrebai-adsk requested a review from barbalt July 25, 2025 15:32
@@ -134,7 +142,8 @@ void UsdUndoDuplicateCommand::execute()
layer->GetDisplayName().c_str(),
_usdDstPath.GetText());

isFirst = false;
if (!isInSession)
isFirst = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

As I'm not familiar with this code, why do we needed a flag for the first layer and now we don't anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The flag is meant to say "first non session layer" So it is only set to false when we have processed a non-session layer.

- Modify the parent and duplicate commands to keep data that is in the session in the session layer.
- Added a unit test to verify this.
- Added explanatory comments.
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-2306/reparent-session-data branch from 3245d80 to 6ba5ad2 Compare July 25, 2025 16:20
@pierrebai-adsk pierrebai-adsk requested a review from barbalt July 25, 2025 16:21
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin bug Something isn't working ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants