X Tutup
Skip to content

Don't emit scene_changed when restoring scenes#110731

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
KoBeWi:restNOTre
Dec 19, 2025
Merged

Don't emit scene_changed when restoring scenes#110731
akien-mga merged 1 commit intogodotengine:masterfrom
KoBeWi:restNOTre

Conversation

@KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Sep 20, 2025

When start editor and there is multiple scenes open, the editor will emit scene_changed signal for every scene - 1. What's worse, the signal is deferred, so the scene_root argument of the signal will be the same node for every emission.

This PR prevents that.

Related: #110135 (comment)

@KoBeWi KoBeWi added this to the 4.6 milestone Sep 20, 2025
@KoBeWi KoBeWi added the bug label Sep 20, 2025
@KoBeWi KoBeWi requested a review from a team September 20, 2025 18:49
@akien-mga akien-mga merged commit 81ad303 into godotengine:master Dec 19, 2025
39 of 40 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the restNOTre branch December 19, 2025 12:15
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.

2 participants

X Tutup