diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2024-08-06 22:56:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-06 22:56:28 +0200 |
commit | 9564c3da619d647e0028ac80d007c0a441f4695e (patch) | |
tree | 95b3316757400e089046e7de25708e0fcb92b8c0 | |
parent | 4359c28feafb39dd0157744a52f6746d49a38c37 (diff) | |
parent | aebcd699fe00e606b4ab4cb9b5b7e4ca7e6961e2 (diff) | |
download | redot-engine-9564c3da619d647e0028ac80d007c0a441f4695e.tar.gz |
Merge pull request #92735 from pixbyte/master
Fix undo not updating spawn checkbox in replication editor
-rw-r--r-- | modules/multiplayer/editor/replication_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/multiplayer/editor/replication_editor.cpp b/modules/multiplayer/editor/replication_editor.cpp index d242b06c29..851ad85876 100644 --- a/modules/multiplayer/editor/replication_editor.cpp +++ b/modules/multiplayer/editor/replication_editor.cpp @@ -430,7 +430,7 @@ void ReplicationEditor::_tree_item_edited() { undo_redo->add_do_method(config.ptr(), "property_set_spawn", prop, value); undo_redo->add_undo_method(config.ptr(), "property_set_spawn", prop, !value); undo_redo->add_do_method(this, "_update_value", prop, column, value ? 1 : 0); - undo_redo->add_undo_method(this, "_update_value", prop, column, value ? 1 : 0); + undo_redo->add_undo_method(this, "_update_value", prop, column, value ? 0 : 1); undo_redo->commit_action(); } else if (column == 2) { undo_redo->create_action(TTR("Set sync property")); |