add world position properties to LdtkLevel and update scene builder

This commit is contained in:
2025-09-23 02:00:44 +02:00
parent d92e2b004e
commit 22271e741d
3 changed files with 7 additions and 5 deletions

View File

@@ -52,10 +52,6 @@ public partial class LdtkResourceImporter : EditorImportPlugin
var scene = new PackedScene();
scene.Pack(rootNode);
var newSceneNodeCount = scene.GetState().GetNodeCount();
GD.Print($"New scene node count: {newSceneNodeCount}, expected: {rootNode.GetChildCount() + 1} (including root)");
// 4. Save the generated scene
var destinationPath = $"{savePath}.{_GetSaveExtension()}";
var error = ResourceSaver.Save(scene, destinationPath);