add layout serializer & converter

This commit is contained in:
Junhan Chang
2025-10-18 20:53:03 +08:00
parent 95dd8beb81
commit 88ae56806c
2 changed files with 3 additions and 0 deletions

View File

@@ -342,6 +342,7 @@ class ResourceTreeSet(object):
pos = {
"size": {"width": d["size_x"], "height": d["size_y"], "depth": d["size_z"]},
"scale": {"x": 1.0, "y": 1.0, "z": 1.0},
"layout": d.get("layout", "x-y"),
"position": raw_pos,
"position3d": raw_pos,
"rotation": d["rotation"],