Add the do and undo methods in one after the other in add_mesh_seam_change_undo_redo because the docs say it has to be like that.

This commit is contained in:
Relintai 2022-01-21 13:25:23 +01:00
parent 2ce6e4d466
commit b5dbe0b6dd

View File

@ -1165,9 +1165,9 @@ func add_mesh_seam_change_undo_redo(orig_arr : Array, orig_seams : PoolIntArray,
var nac : Array = copy_arrays(new_arr)
_undo_redo.add_do_method(self, "apply_mesh_change", _mdr, nac)
_undo_redo.add_do_method(self, "set_seam", _mdr, copy_pool_int_array(new_seams))
_undo_redo.add_undo_method(self, "apply_mesh_change", _mdr, orig_arr)
_undo_redo.add_do_method(self, "set_seam", _mdr, copy_pool_int_array(new_seams))
_undo_redo.add_undo_method(self, "set_seam", _mdr, orig_seams)
_undo_redo.commit_action()