You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Cleanup remaining EditorUndoRedoManager usages
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user