1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Fix node config warning not updating for Multiplayer{Spawner,Synchronizer}

(cherry picked from commit 6feb43200b)
This commit is contained in:
Haoyu Qiu
2024-03-24 13:53:09 +08:00
committed by Rémi Verschelde
parent 1c5984c304
commit 7d1c5125a0
2 changed files with 2 additions and 0 deletions

View File

@@ -251,6 +251,7 @@ NodePath MultiplayerSpawner::get_spawn_path() const {
void MultiplayerSpawner::set_spawn_path(const NodePath &p_path) { void MultiplayerSpawner::set_spawn_path(const NodePath &p_path) {
spawn_path = p_path; spawn_path = p_path;
_update_spawn_node(); _update_spawn_node();
update_configuration_warnings();
} }
void MultiplayerSpawner::_track(Node *p_node, const Variant &p_argument, int p_scene_id) { void MultiplayerSpawner::_track(Node *p_node, const Variant &p_argument, int p_scene_id) {

View File

@@ -354,6 +354,7 @@ void MultiplayerSynchronizer::set_root_path(const NodePath &p_path) {
_stop(); _stop();
root_path = p_path; root_path = p_path;
_start(); _start();
update_configuration_warnings();
} }
NodePath MultiplayerSynchronizer::get_root_path() const { NodePath MultiplayerSynchronizer::get_root_path() const {