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
41 changed files with 155 additions and 121 deletions

View File

@@ -37,7 +37,7 @@
#include "editor/themes/editor_scale.h"
#endif
#ifdef TOOLS_ENABLED
#ifdef DEBUG_ENABLED
Rect2 Path2D::_edit_get_rect() const {
if (!curve.is_valid() || curve->get_point_count() == 0) {
return Rect2(0, 0, 0, 0);