Compile certain CanvasItem._edit_*() functions with DEBUG_ENABLED
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "visible_on_screen_notifier_2d.h"
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
#ifdef DEBUG_ENABLED
|
||||
Rect2 VisibleOnScreenNotifier2D::_edit_get_rect() const {
|
||||
return rect;
|
||||
}
|
||||
@@ -38,7 +38,7 @@ Rect2 VisibleOnScreenNotifier2D::_edit_get_rect() const {
|
||||
bool VisibleOnScreenNotifier2D::_edit_use_rect() const {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
#endif // DEBUG_ENABLED
|
||||
|
||||
void VisibleOnScreenNotifier2D::_visibility_enter() {
|
||||
if (!is_inside_tree() || Engine::get_singleton()->is_editor_hint()) {
|
||||
|
||||
Reference in New Issue
Block a user