Merge pull request #3385 from godotengine/pr-fix-3384

Fix build with tools=no
This commit is contained in:
Rémi Verschelde 2016-01-19 10:46:08 +01:00
commit 1584aea71e
1 changed files with 4 additions and 0 deletions

View File

@ -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;