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

Don't paste nodes as sibling of scene root #81673

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Sep 14, 2023

The new Paste As Sibling option could be used without selection, resulting in node being a sibling of viewport.

godot_spbCrcPPis.mp4

This PR fixes that. Also fixes wrong node name in the action.

Another thing I noticed is that when pasting as sibling the new node will be always at the end of the list. I think it should be just below the used sibling.

EDIT:
Also fixes the menu option not working correctly.

@KoBeWi KoBeWi added this to the 4.2 milestone Sep 14, 2023
@KoBeWi KoBeWi requested a review from a team as a code owner September 14, 2023 23:17
Copy link
Contributor

@ryanabx ryanabx left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Side note: That theme is awesome, where'd you find it?

@KoBeWi
Copy link
Member Author

KoBeWi commented Sep 15, 2023

Side note: That theme is awesome, where'd you find it?

It's Godot 2 theme (one of the default presets) with accent color shifted to red.

@KoBeWi
Copy link
Member Author

KoBeWi commented Sep 15, 2023

I reworked the PR to disable the option instead of defaulting to paste as child:
image

Copy link
Contributor

@YuriSizov YuriSizov left a comment

Choose a reason for hiding this comment

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

Both issue with siblings and issue with the context menu option doing the wrong thing are fixed now 🚀

@YuriSizov YuriSizov merged commit fa31a9f into godotengine:master Sep 15, 2023
@KoBeWi KoBeWi deleted the only_child branch September 15, 2023 18:01
@YuriSizov
Copy link
Contributor

Thanks!

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.

3 participants