1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Don't compile editor-only function when tools=no

This commit is contained in:
Gilles Roudière
2019-10-21 23:37:07 +02:00
parent 76678b2609
commit b5251eb00f
38 changed files with 126 additions and 42 deletions

View File

@@ -50,6 +50,7 @@ void BackBufferCopy::_update_copy_mode() {
}
}
#ifdef TOOLS_ENABLED
Rect2 BackBufferCopy::_edit_get_rect() const {
return rect;
@@ -58,6 +59,7 @@ Rect2 BackBufferCopy::_edit_get_rect() const {
bool BackBufferCopy::_edit_use_rect() const {
return true;
}
#endif
Rect2 BackBufferCopy::get_anchorable_rect() const {