浏览代码

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

(cherry picked from commit 6feb43200b95168dda261573ca1765a67b8a0fff)
Haoyu Qiu 1 年之前
父节点
当前提交
7d1c5125a0
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      modules/multiplayer/multiplayer_spawner.cpp
  2. 1 0
      modules/multiplayer/multiplayer_synchronizer.cpp

+ 1 - 0
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) {

+ 1 - 0
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 {