Fix continious update with Camera2D
Closes #4406
(cherry picked from commit b2e0cedbf0
)
This commit is contained in:
parent
c0748bad06
commit
7f4387d21e
|
@ -240,6 +240,10 @@ void Camera2D::_notification(int p_what) {
|
||||||
add_to_group(group_name);
|
add_to_group(group_name);
|
||||||
add_to_group(canvas_group_name);
|
add_to_group(canvas_group_name);
|
||||||
|
|
||||||
|
if(get_tree()->is_editor_hint()) {
|
||||||
|
set_fixed_process(false);
|
||||||
|
}
|
||||||
|
|
||||||
_update_scroll();
|
_update_scroll();
|
||||||
first=true;
|
first=true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue