Browse Source

tools: don't run out of Vector3s

Daniele Bartolini 3 tháng trước cách đây
mục cha
commit
fb3ca6917f
2 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 1 0
      docs/changelog.rst
  2. 2 0
      tools/level_editor/unit.vala

+ 1 - 0
docs/changelog.rst

@@ -18,6 +18,7 @@ Changelog
 * Runtime: Windows: fixed a number of misdetected keyboard keys.
 * Runtime: Windows: fixed windows firewall popping up at startup.
 * Runtime: Linux: fixed a crash at startup due to some X11 libraries not being found.
+* Runtime: fixed a regression that caused levels with many objects to not load.
 * Lua: fixed a memory leak when executing some script component callbacks.
 
 0.59.0 --- 02 Oct 2025

+ 2 - 0
tools/level_editor/unit.vala

@@ -772,11 +772,13 @@ public struct Unit
 			Guid unit_id = object_ids[i];
 			Unit unit = Unit(db, unit_id);
 
+			sb.append("editor_nv, editor_nq, editor_nm = Device.temp_count()");
 			sb.append(LevelEditorApi.move_object(unit_id
 				, unit.local_position()
 				, unit.local_rotation()
 				, unit.local_scale()
 				));
+			sb.append("Device.set_temp_count(editor_nv, editor_nq, editor_nm)");
 
 			_component_registry.foreach((g) => {
 					string component_type = g.key;