2
0
Эх сурвалжийг харах

Merge pull request #4407 from bojidar-bg/camera2d-fix-update-in-editor

Fix continious update with Camera2D
Rémi Verschelde 9 жил өмнө
parent
commit
ef8b160da8

+ 4 - 0
scene/2d/camera_2d.cpp

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