mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Compile certain CanvasItem._edit_*() functions with DEBUG_ENABLED
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user