Skip to content

Commit

Permalink
Merge pull request #4407 from bojidar-bg/camera2d-fix-update-in-editor
Browse files Browse the repository at this point in the history
Fix continious update with Camera2D
  • Loading branch information
akien-mga committed Apr 24, 2016
2 parents 6e4957d + b2e0ced commit ef8b160
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scene/2d/camera_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ void Camera2D::_notification(int p_what) {
add_to_group(group_name);
add_to_group(canvas_group_name);

if(get_tree()->is_editor_hint()) {
set_fixed_process(false);
}

_update_scroll();
first=true;

Expand Down

0 comments on commit ef8b160

Please sign in to comment.