Skip to content

Commit 09971b7

Browse files
author
David Kline
committed
pr feedback
1 parent 152ea7a commit 09971b7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Assets/MRTK/Core/Utilities/Gltf/Serialization/GltfUtility.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,20 @@ public static GltfObject GetGltfObjectFromJson(string jsonString)
171171
if (gltfObject.extensionsRequired?.Length > 0)
172172
{
173173
Debug.LogError("One or more unsupported glTF extensions required. Unable to load the model.");
174+
for (int i = 0; i < gltfObject.extensionsRequired.Length; ++i)
175+
{
176+
Debug.Log($"Extension: {gltfObject.extensionsUsed[i]}");
177+
}
174178
return null;
175179
}
176180

177181
if (gltfObject.extensionsUsed?.Length > 0)
178182
{
179183
Debug.Log("One or more unsupported glTF extensions in use, ignoring them.");
184+
for (int i = 0; i < gltfObject.extensionsUsed.Length; ++i)
185+
{
186+
Debug.Log($"Extension: {gltfObject.extensionsUsed[i]}");
187+
}
180188
}
181189

182190
var meshPrimitiveAttributes = GetGltfMeshPrimitiveAttributes(jsonString);

0 commit comments

Comments
 (0)