Ver Fonte

Merge pull request #20747 from hpvb/fix-20184

Do not call _update_actions when only changing deadzone
Rémi Verschelde há 7 anos atrás
pai
commit
62f3de6c86
1 ficheiros alterados com 0 adições e 2 exclusões
  1. 0 2
      editor/project_settings_editor.cpp

+ 0 - 2
editor/project_settings_editor.cpp

@@ -215,10 +215,8 @@ void ProjectSettingsEditor::_action_edited() {
 
 		undo_redo->create_action(TTR("Change Action deadzone"));
 		undo_redo->add_do_method(ProjectSettings::get_singleton(), "set", name, new_action);
-		undo_redo->add_do_method(this, "_update_actions");
 		undo_redo->add_do_method(this, "_settings_changed");
 		undo_redo->add_undo_method(ProjectSettings::get_singleton(), "set", name, old_action);
-		undo_redo->add_undo_method(this, "_update_actions");
 		undo_redo->add_undo_method(this, "_settings_changed");
 		undo_redo->commit_action();
 	}