Compile certain CanvasItem._edit_*() functions with DEBUG_ENABLED
This commit is contained in:
parent
c6c464cf9a
commit
58e79bfa9a
41 changed files with 155 additions and 121 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue