changeset 1450:f10434260b1d

fix: wrong field-name of gltf attribute
author sam <sam@basx.dev>
date Wed, 12 Mar 2025 20:36:29 +0700
parents 9f3306b2ba14
children e88f4e544f76
files semicongine/gltf.nim
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/gltf.nim	Wed Mar 12 00:09:26 2025 +0700
+++ b/semicongine/gltf.nim	Wed Mar 12 20:36:29 2025 +0700
@@ -323,8 +323,8 @@
   result = GltfNode()
   if "name" in node:
     result.name = node["name"].getStr()
-  if "properties" in node:
-    result.properties = node["properties"]
+  if "extras" in node:
+    result.properties = node["extras"]
   if "mesh" in node:
     result.mesh = node["mesh"].getInt()
   if "children" in node: