Skip to content

Commit

Permalink
Update types: UndoRedo is now an internal of EditorUndoRedoManager
Browse files Browse the repository at this point in the history
  • Loading branch information
evanwalsh committed Sep 18, 2022
1 parent cac96a0 commit 5e01c53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/ply/nodes/ply.gd
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func begin_edit() -> void:
_current_edit = _ply_mesh.begin_edit()


func commit_edit(name: String, undo_redo: UndoRedo) -> void:
func commit_edit(name: String, undo_redo: EditorUndoRedoManager) -> void:
_ply_mesh.commit_edit(name, undo_redo, _current_edit)
_current_edit = null

Expand Down
2 changes: 1 addition & 1 deletion addons/ply/resources/ply_mesh.gd
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func get_mesh(mesh: Mesh = null) -> ArrayMesh:
return mesh


func commit_edit(name: String, undo_redo: UndoRedo, pre_edits: Array) -> void:
func commit_edit(name: String, undo_redo: EditorUndoRedoManager, pre_edits: Array) -> void:
undo_redo.create_action(name)
undo_redo.add_do_property(self, "vertexes", vertexes)
undo_redo.add_undo_property(self, "vertexes", pre_edits[0])
Expand Down

0 comments on commit 5e01c53

Please sign in to comment.