diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-01-19 10:46:08 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-01-19 10:46:08 +0100 |
commit | 1584aea71eee56d0c2e20c7197519bc248a8932e (patch) | |
tree | 1bd2ec7880e1d28cd7df81f59e38877903b72f09 | |
parent | d1bb868a193d33896df12d289341391ef6d4e8f3 (diff) | |
parent | 5d84589e420475110110f3b26e0917c56910a8ce (diff) |
Merge pull request #3385 from godotengine/pr-fix-3384
Fix build with tools=no
-rw-r--r-- | scene/main/viewport.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index eab62c0dcb..f21142c739 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1279,9 +1279,11 @@ void Viewport::_vp_input(const InputEvent& p_ev) { if (disable_input) return; +#ifdef TOOLS_ENABLED if (get_tree()->is_editor_hint() && get_tree()->get_edited_scene_root()->is_a_parent_of(this)) { return; } +#endif if (parent_control && !parent_control->is_visible()) return; @@ -1304,9 +1306,11 @@ void Viewport::_vp_unhandled_input(const InputEvent& p_ev) { if (disable_input) return; +#ifdef TOOLS_ENABLED if (get_tree()->is_editor_hint() && get_tree()->get_edited_scene_root()->is_a_parent_of(this)) { return; } +#endif if (parent_control && !parent_control->is_visible()) return; |