浏览代码

Fix crash when re-importing model with AnimationPlayer panel open and node selected

Yahkub-R 1 年之前
父节点
当前提交
a54c6ce42d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/plugins/animation_player_editor_plugin.cpp

+ 1 - 1
editor/plugins/animation_player_editor_plugin.cpp

@@ -802,7 +802,7 @@ void AnimationPlayerEditor::set_state(const Dictionary &p_state) {
 					player->connect(SNAME("animation_list_changed"), callable_mp(this, &AnimationPlayerEditor::_animation_libraries_updated), CONNECT_DEFERRED);
 				}
 				if (!player->is_connected(SNAME("current_animation_changed"), callable_mp(this, &AnimationPlayerEditor::_current_animation_changed))) {
-					player->connect(SNAME("current_animation_changed"), callable_mp(this, &AnimationPlayerEditor::_current_animation_changed), CONNECT_DEFERRED);
+					player->connect(SNAME("current_animation_changed"), callable_mp(this, &AnimationPlayerEditor::_current_animation_changed));
 				}
 			}