Compile certain CanvasItem._edit_*() functions with DEBUG_ENABLED
This commit is contained in:
parent
c6c464cf9a
commit
58e79bfa9a
41 changed files with 155 additions and 121 deletions
|
|
@ -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() {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue