Merge pull request #33440 from akien-mga/revert-32927
Revert "Fixed TouchScreenButton::shape_centered having no effect"
This commit is contained in:
commit
be15a016f4
1 changed files with 2 additions and 6 deletions
|
@ -325,12 +325,8 @@ void TouchScreenButton::_release(bool p_exiting_tree) {
|
|||
}
|
||||
|
||||
Rect2 TouchScreenButton::_edit_get_rect() const {
|
||||
if (texture.is_null()) {
|
||||
if (shape.is_valid())
|
||||
return shape->get_rect();
|
||||
else
|
||||
if (texture.is_null())
|
||||
return CanvasItem::_edit_get_rect();
|
||||
}
|
||||
|
||||
return Rect2(Size2(), texture->get_size());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue