Skip to content

Commit

Permalink
Merge pull request #92735 from pixbyte/master
Browse files Browse the repository at this point in the history
Fix undo not updating spawn checkbox in replication editor
  • Loading branch information
akien-mga authored Aug 6, 2024
2 parents 4359c28 + aebcd69 commit 9564c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/multiplayer/editor/replication_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 9564c3d

Please sign in to comment.