Skip to content

Commit

Permalink
fix: changed AssImp unsupported pivot bone error to warning (#2467)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doprez authored Sep 25, 2024
1 parent 90522b7 commit e4d7e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/tools/Stride.Importer.3D/MeshConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ private unsafe AnimationInfo ProcessAnimations(Scene* scene, int animationIndex)
// TODO: Need to resample the animation created by the pivot chain into a single animation, have a look at the file hierarchy in Assimp's viewer to get a better clue
// See: 'IMPORT_FBX_PRESERVE_PIVOTS' above and https://github.com/assimp/assimp/discussions/4966
if (nodeAnim->MNodeName.AsString.Contains("$AssimpFbx$"))
Logger.Error($"Animation '{animName}' contains a pivot bone ({nodeAnim->MNodeName.AsString}), we currently do not handle these. This animation may not resolve properly.");
Logger.Warning($"Animation '{animName}' contains a pivot bone ({nodeAnim->MNodeName.AsString}), we currently do not handle these. This animation may not resolve properly.");

if (visitedNodeNames.Add(nodeName))
{
Expand Down

0 comments on commit e4d7e80

Please sign in to comment.