parent
d1bb868a19
commit
5d84589e42
|
@ -1279,9 +1279,11 @@ void Viewport::_vp_input(const InputEvent& p_ev) {
|
||||||
if (disable_input)
|
if (disable_input)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef TOOLS_ENABLED
|
||||||
if (get_tree()->is_editor_hint() && get_tree()->get_edited_scene_root()->is_a_parent_of(this)) {
|
if (get_tree()->is_editor_hint() && get_tree()->get_edited_scene_root()->is_a_parent_of(this)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (parent_control && !parent_control->is_visible())
|
if (parent_control && !parent_control->is_visible())
|
||||||
return;
|
return;
|
||||||
|
@ -1304,9 +1306,11 @@ void Viewport::_vp_unhandled_input(const InputEvent& p_ev) {
|
||||||
if (disable_input)
|
if (disable_input)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef TOOLS_ENABLED
|
||||||
if (get_tree()->is_editor_hint() && get_tree()->get_edited_scene_root()->is_a_parent_of(this)) {
|
if (get_tree()->is_editor_hint() && get_tree()->get_edited_scene_root()->is_a_parent_of(this)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (parent_control && !parent_control->is_visible())
|
if (parent_control && !parent_control->is_visible())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue