diff options
author | Gilles Roudière <gilles.roudiere@gmail.com> | 2019-10-21 23:37:07 +0200 |
---|---|---|
committer | Gilles Roudière <gilles.roudiere@gmail.com> | 2020-01-09 22:15:48 +0100 |
commit | b5251eb00f7daa339ad61923f16608432a902f46 (patch) | |
tree | dc8034fc276d71436ef611ff392a56297e64cadc /scene/2d/node_2d.cpp | |
parent | 76678b2609921f27f52c1a2e2bd62b8d2a27bb4b (diff) |
Don't compile editor-only function when tools=no
Diffstat (limited to 'scene/2d/node_2d.cpp')
-rw-r--r-- | scene/2d/node_2d.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/node_2d.cpp b/scene/2d/node_2d.cpp index ad04dc8d9e..7bbc7577ed 100644 --- a/scene/2d/node_2d.cpp +++ b/scene/2d/node_2d.cpp @@ -35,6 +35,7 @@ #include "scene/main/viewport.h" #include "servers/visual_server.h" +#ifdef TOOLS_ENABLED Dictionary Node2D::_edit_get_state() const { Dictionary state; @@ -44,6 +45,7 @@ Dictionary Node2D::_edit_get_state() const { return state; } + void Node2D::_edit_set_state(const Dictionary &p_state) { pos = p_state["position"]; @@ -119,6 +121,7 @@ void Node2D::_edit_set_rect(const Rect2 &p_edit_rect) { _change_notify("scale"); _change_notify("position"); } +#endif void Node2D::_update_xform_values() { |