You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user