Browse Source

Merge pull request #44746 from adamscott/fix-accessor-normalized-3.2

[3.2] Add missing "normalized" accessor property to glTF document
Rémi Verschelde 4 years ago
parent
commit
fb9f723bf1
1 changed files with 4 additions and 0 deletions
  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"];
 		}