File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ Size2 Control::_edit_get_scale() const {
130130
131131void Control::_edit_set_rect (const Rect2 &p_edit_rect) {
132132 ERR_FAIL_COND_MSG (!Engine::get_singleton ()->is_editor_hint (), " This function can only be used from editor plugins." );
133- set_position ((get_position () + get_transform ().basis_xform (p_edit_rect.position )). snappedf ( 1 ) , ControlEditorToolbar::get_singleton ()->is_anchors_mode_enabled ());
134- set_size (p_edit_rect.size . snappedf ( 1 ) , ControlEditorToolbar::get_singleton ()->is_anchors_mode_enabled ());
133+ set_position ((get_position () + get_transform ().basis_xform (p_edit_rect.position )), ControlEditorToolbar::get_singleton ()->is_anchors_mode_enabled ());
134+ set_size (p_edit_rect.size , ControlEditorToolbar::get_singleton ()->is_anchors_mode_enabled ());
135135}
136136
137137void Control::_edit_set_rotation (real_t p_rotation) {
You can’t perform that action at this time.
0 commit comments