mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 22:23:04 +00:00
Fix CanvasItemEditor scale editor not using the editor methods
This commit is contained in:
parent
a4759e375a
commit
742205b29a
@ -1831,7 +1831,7 @@ bool CanvasItemEditor::_gui_input_scale(const Ref<InputEvent> &p_event) {
|
||||
Point2 drag_to_local = simple_xform.xform(drag_to);
|
||||
Point2 offset = drag_to_local - drag_from_local;
|
||||
|
||||
Size2 scale = canvas_item->call("get_scale");
|
||||
Size2 scale = canvas_item->_edit_get_scale();
|
||||
Size2 original_scale = scale;
|
||||
real_t ratio = scale.y / scale.x;
|
||||
if (drag_type == DRAG_SCALE_BOTH) {
|
||||
@ -1869,7 +1869,7 @@ bool CanvasItemEditor::_gui_input_scale(const Ref<InputEvent> &p_event) {
|
||||
}
|
||||
}
|
||||
|
||||
canvas_item->call("set_scale", scale);
|
||||
canvas_item->_edit_set_scale(scale);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user