Cleanup remaining EditorUndoRedoManager usages
This commit is contained in:
parent
cd3d6e63a6
commit
8a3d2f4e0c
59 changed files with 408 additions and 406 deletions
|
|
@ -298,6 +298,7 @@ void TextureRegionEditor::_region_input(const Ref<InputEvent> &p_input) {
|
|||
mtx.xform(rect.position + Vector2(0, rect.size.y / 2)) + Vector2(-handle_offset, 0)
|
||||
};
|
||||
|
||||
Ref<EditorUndoRedoManager> &undo_redo = EditorNode::get_undo_redo();
|
||||
Ref<InputEventMouseButton> mb = p_input;
|
||||
if (mb.is_valid()) {
|
||||
if (mb->get_button_index() == MouseButton::LEFT) {
|
||||
|
|
@ -1065,7 +1066,6 @@ TextureRegionEditor::TextureRegionEditor() {
|
|||
node_ninepatch = nullptr;
|
||||
obj_styleBox = Ref<StyleBoxTexture>(nullptr);
|
||||
atlas_tex = Ref<AtlasTexture>(nullptr);
|
||||
undo_redo = EditorNode::get_singleton()->get_undo_redo();
|
||||
|
||||
preview_tex = Ref<CanvasTexture>(memnew(CanvasTexture));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue