浏览代码

SceneImportSettings update_timer should be a oneshot.

SceneImportSettings uses a timer to debounce updates, but the
timer isnt a one shot.  This means after the first update is
scheduled, the dialog keeps re-rendering evne though no update
has been requested.
Rob Blanckaert 11 月之前
父节点
当前提交
e5ff64d08f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/import/3d/scene_import_settings.cpp

+ 1 - 0
editor/import/3d/scene_import_settings.cpp

@@ -1917,6 +1917,7 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
 
 	update_view_timer = memnew(Timer);
 	update_view_timer->set_wait_time(0.2);
+	update_view_timer->set_one_shot(true);
 	update_view_timer->connect("timeout", callable_mp(this, &SceneImportSettingsDialog::_update_view_gizmos));
 	add_child(update_view_timer);
 }