1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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

@@ -61,7 +61,7 @@ void Marker2D::_draw_cross() {
draw_multiline_colors(points, colors);
}
#ifdef TOOLS_ENABLED
#ifdef DEBUG_ENABLED
Rect2 Marker2D::_edit_get_rect() const {
real_t extents = get_gizmo_extents();
return Rect2(Point2(-extents, -extents), Size2(extents * 2, extents * 2));
@@ -70,7 +70,7 @@ Rect2 Marker2D::_edit_get_rect() const {
bool Marker2D::_edit_use_rect() const {
return false;
}
#endif
#endif // DEBUG_ENABLED
void Marker2D::_notification(int p_what) {
switch (p_what) {