Browse Source

Merge pull request #63084 from madmiraal/fix-56336-3.x

Rémi Verschelde 3 năm trước cách đây
mục cha
commit
090d9f6d25
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 1 1
      scene/2d/camera_2d.cpp
  2. 2 2
      scene/main/scene_tree.cpp

+ 1 - 1
scene/2d/camera_2d.cpp

@@ -437,7 +437,7 @@ void Camera2D::clear_current() {
 void Camera2D::set_limit(Margin p_margin, int p_limit) {
 	ERR_FAIL_INDEX((int)p_margin, 4);
 	limit[p_margin] = p_limit;
-	update();
+	_update_scroll();
 }
 
 int Camera2D::get_limit(Margin p_margin) const {

+ 2 - 2
scene/main/scene_tree.cpp

@@ -2168,8 +2168,8 @@ SceneTree::SceneTree() {
 	GLOBAL_DEF("debug/shapes/collision/draw_2d_outlines", true);
 
 	tree_version = 1;
-	physics_process_time = 1;
-	idle_process_time = 1;
+	physics_process_time = 0.f;
+	idle_process_time = 0.f;
 
 	root = nullptr;
 	input_handled = false;