summaryrefslogtreecommitdiffstats
path: root/modules/multiplayer
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-03-24 13:53:09 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-03-24 13:53:09 +0800
commit6feb43200b95168dda261573ca1765a67b8a0fff (patch)
tree49c8d0f8aa240832836130ca7806020bb03a09be /modules/multiplayer
parent99ff024f78f65ba0bc54fb409cfeca43ba2008fe (diff)
downloadredot-engine-6feb43200b95168dda261573ca1765a67b8a0fff.tar.gz
Fix node config warning not updating for Multiplayer{Spawner,Synchronizer}
Diffstat (limited to 'modules/multiplayer')
-rw-r--r--modules/multiplayer/multiplayer_spawner.cpp1
-rw-r--r--modules/multiplayer/multiplayer_synchronizer.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/multiplayer/multiplayer_spawner.cpp b/modules/multiplayer/multiplayer_spawner.cpp
index 264a2e9c8e..6c0669b2f3 100644
--- a/modules/multiplayer/multiplayer_spawner.cpp
+++ b/modules/multiplayer/multiplayer_spawner.cpp
@@ -251,6 +251,7 @@ NodePath MultiplayerSpawner::get_spawn_path() const {
void MultiplayerSpawner::set_spawn_path(const NodePath &p_path) {
spawn_path = p_path;
_update_spawn_node();
+ update_configuration_warnings();
}
void MultiplayerSpawner::_track(Node *p_node, const Variant &p_argument, int p_scene_id) {
diff --git a/modules/multiplayer/multiplayer_synchronizer.cpp b/modules/multiplayer/multiplayer_synchronizer.cpp
index 02e3a11964..c2ce500af8 100644
--- a/modules/multiplayer/multiplayer_synchronizer.cpp
+++ b/modules/multiplayer/multiplayer_synchronizer.cpp
@@ -354,6 +354,7 @@ void MultiplayerSynchronizer::set_root_path(const NodePath &p_path) {
_stop();
root_path = p_path;
_start();
+ update_configuration_warnings();
}
NodePath MultiplayerSynchronizer::get_root_path() const {