Skip to content

Commit aebcd69

Browse files
committed
Fixed undo not updating spawn checkbox in replication editor
When pressing undo the value was set to the same as it was before in the ui. It was saved correctly in the config but not updated in the editor.
1 parent 4359c28 commit aebcd69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/multiplayer/editor/replication_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ void ReplicationEditor::_tree_item_edited() {
430430
undo_redo->add_do_method(config.ptr(), "property_set_spawn", prop, value);
431431
undo_redo->add_undo_method(config.ptr(), "property_set_spawn", prop, !value);
432432
undo_redo->add_do_method(this, "_update_value", prop, column, value ? 1 : 0);
433-
undo_redo->add_undo_method(this, "_update_value", prop, column, value ? 1 : 0);
433+
undo_redo->add_undo_method(this, "_update_value", prop, column, value ? 0 : 1);
434434
undo_redo->commit_action();
435435
} else if (column == 2) {
436436
undo_redo->create_action(TTR("Set sync property"));

0 commit comments

Comments
 (0)