Skip to content

Commit 22f846e

Browse files
committed
Fix bad interpolation keys for glTF animation pointer data
1 parent b21a969 commit 22f846e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/dev/loaders/src/glTF/2.0/Extensions/KHR_animation_pointer.data.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ SetInterpolationForKey("/materials/{}/pbrMetallicRoughness/baseColorTexture/exte
103103
SetInterpolationForKey("/materials/{}/pbrMetallicRoughness/baseColorTexture/extensions/KHR_texture_transform/rotation", baseColorTextureInterpolation.rotation);
104104

105105
const metallicRoughnessTextureInterpolation = getTextureTransformTree("metallicTexture");
106-
SetInterpolationForKey("//materials/{}/pbrMetallicRoughness/metallicRoughnessTexture/scale", metallicRoughnessTextureInterpolation.scale);
107-
SetInterpolationForKey("//materials/{}/pbrMetallicRoughness/metallicRoughnessTexture/offset", metallicRoughnessTextureInterpolation.offset);
108-
SetInterpolationForKey("//materials/{}/pbrMetallicRoughness/metallicRoughnessTexture/rotation", metallicRoughnessTextureInterpolation.rotation);
106+
SetInterpolationForKey("/materials/{}/pbrMetallicRoughness/metallicRoughnessTexture/extensions/KHR_texture_transform/scale", metallicRoughnessTextureInterpolation.scale);
107+
SetInterpolationForKey("/materials/{}/pbrMetallicRoughness/metallicRoughnessTexture/extensions/KHR_texture_transform/offset", metallicRoughnessTextureInterpolation.offset);
108+
SetInterpolationForKey("/materials/{}/pbrMetallicRoughness/metallicRoughnessTexture/extensions/KHR_texture_transform/rotation", metallicRoughnessTextureInterpolation.rotation);
109109

110110
SetInterpolationForKey("/materials/{}/emissiveFactor", [new MaterialAnimationPropertyInfo(Animation.ANIMATIONTYPE_COLOR3, "emissiveColor", getColor3, () => 3)]);
111111
const normalTextureInterpolation = getTextureTransformTree("bumpTexture");

0 commit comments

Comments
 (0)