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
No known key found for this signature in database
GPG key ID: A9C91EE110F4EABA
41 changed files with 155 additions and 121 deletions

View file

@ -88,7 +88,7 @@ Ref<Texture2D> MeshInstance2D::get_texture() const {
return texture;
}
#ifdef TOOLS_ENABLED
#ifdef DEBUG_ENABLED
Rect2 MeshInstance2D::_edit_get_rect() const {
if (mesh.is_valid()) {
AABB aabb = mesh->get_aabb();
@ -101,7 +101,7 @@ Rect2 MeshInstance2D::_edit_get_rect() const {
bool MeshInstance2D::_edit_use_rect() const {
return mesh.is_valid();
}
#endif
#endif // DEBUG_ENABLED
MeshInstance2D::MeshInstance2D() {
}