Skip to content
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

Preserve scene unique names when saving branch as scene. #76609

Conversation

HolonProduction
Copy link
Member

@HolonProduction HolonProduction commented Apr 30, 2023

Fixes: #76614

When saving a branch as scene it did loose its unique scene name within the original scene. Now it is preserved so that scripts in the original scene don't break when splitting a scene up.

@HolonProduction HolonProduction requested a review from a team as a code owner April 30, 2023 11:37
@adamscott
Copy link
Member

Can you link the issue it fixes?

@fire
Copy link
Member

fire commented Apr 30, 2023

Can you make an issue if it doesn't exist?

@kleonc
Copy link
Member

kleonc commented Apr 30, 2023

Not sure if opening a new issue in necessary. Basically:

version original scene after saving B branch as scene
v4.0.2.stable.official [7a0977c] Godot_v4 0 2-stable_win64_theTynFXz1 q92mXtX2y2
v4.1.dev.custom_build [83e6abd10] (this PR) tgw0J24TXQ 3QBtaR2a3o

Copy link
Member

@kleonc kleonc left a comment

Choose a reason for hiding this comment

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

I've checked the code / when the changed method is being called etc., LGTM (no need to make it with UndoRedo or anything like that).

@adamscott
Copy link
Member

Will need the issue to close before merging.

@HolonProduction
Copy link
Member Author

Added an issue. Is an issue always needed for usability improvements?

@KoBeWi
Copy link
Member

KoBeWi commented Apr 30, 2023

tbh an issue wasn't needed in this case. The PR had all necessary details.

@adamscott
Copy link
Member

Added an issue. Is an issue always needed for usability improvements?

tbh an issue wasn't needed in this case. The PR had all necessary details.

No, it's not necessarily needed, but I think it's preferred, especially if there's no urgency to the PR. It helps tracking what has been done, what issues has been fixed.

@HolonProduction
Copy link
Member Author

Will keep this in mind for the future.

@clayjohn clayjohn merged commit f008027 into godotengine:master May 3, 2023
@clayjohn
Copy link
Member

clayjohn commented May 3, 2023

Looks great! Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.0.3.

@HolonProduction HolonProduction deleted the save-branch-as-scene-unique-name branch July 8, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Branch loses unique name when saving as scene.
8 participants