Skip to content

Commit

Permalink
fixed missing "blendshape." in animation import
Browse files Browse the repository at this point in the history
  • Loading branch information
pfcDorn committed Oct 4, 2023
1 parent 1d78e17 commit 4103f0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Runtime/Scripts/SceneImporter/ImporterAnimation.cs
Expand Up @@ -311,8 +311,7 @@ protected async Task<AnimationClip> ConstructClip(Transform root, int animationI
var targetNames = prim.TargetNames;
propertyNames = new string[targetCount];
for (var i = 0; i < targetCount; i++)
propertyNames[i] = _options.ImportBlendShapeNames ? ("blendShape." + (targetNames != null ? targetNames[i] : ("Morphtarget" + i))) : i.ToString();

propertyNames[i] = _options.ImportBlendShapeNames ? ("blendShape." + (targetNames != null ? targetNames[i] : ("Morphtarget" + i))) : "blendShape."+i.ToString();
var frameFloats = new float[targetCount];

SetAnimationCurve(clip, relativePath, propertyNames, input, output,
Expand Down

0 comments on commit 4103f0a

Please sign in to comment.