ソースを参照

Add missing "normalized" accessor property to glTF document for the 3.2 branch

Adam Scott 4 年 前
コミット
d96fdcd45e
1 ファイル変更4 行追加0 行削除
  1. 4 0
      editor/import/editor_scene_importer_gltf.cpp

+ 4 - 0
editor/import/editor_scene_importer_gltf.cpp

@@ -506,6 +506,10 @@ Error EditorSceneImporterGLTF::_parse_accessors(GLTFState &state) {
 			accessor.byte_offset = d["byteOffset"];
 		}
 
+		if (d.has("normalized")) {
+			accessor.normalized = d["normalized"];
+		}
+
 		if (d.has("max")) {
 			accessor.max = d["max"];
 		}