Skip to content

Commit

Permalink
fix: better check on import for animated paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed May 15, 2023
1 parent 8d4daea commit 61d9748
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UnityGLTF/Assets/UnityGLTF/Editor/Scripts/GLTFImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ string GetUniqueName(string desiredName)
curves[index] = AnimationUtility.GetEditorCurve(clip, binding);

var newBinding = bindings[index];
newBinding.path = binding.path.Substring(animationPathPrefix.Length);
if (binding.path.StartsWith(animationPathPrefix, StringComparison.Ordinal))
newBinding.path = binding.path.Substring(animationPathPrefix.Length);
newBindings[index] = newBinding;
}

Expand Down

0 comments on commit 61d9748

Please sign in to comment.