Compile certain CanvasItem._edit_*() functions with DEBUG_ENABLED

This commit is contained in:
Michael Alexsander 2024-11-01 18:40:25 -03:00
parent c6c464cf9a
commit 58e79bfa9a
No known key found for this signature in database
GPG key ID: A9C91EE110F4EABA
41 changed files with 155 additions and 121 deletions

View file

@ -330,7 +330,7 @@ void TouchScreenButton::_release(bool p_exiting_tree) {
}
}
#ifdef TOOLS_ENABLED
#ifdef DEBUG_ENABLED
Rect2 TouchScreenButton::_edit_get_rect() const {
if (texture_normal.is_null()) {
return CanvasItem::_edit_get_rect();
@ -342,7 +342,7 @@ Rect2 TouchScreenButton::_edit_get_rect() const {
bool TouchScreenButton::_edit_use_rect() const {
return !texture_normal.is_null();
}
#endif
#endif // DEBUG_ENABLED
Rect2 TouchScreenButton::get_anchorable_rect() const {
if (texture_normal.is_null()) {