Skip to content

Commit 269718a

Browse files
authored
Merge pull request #578 from BabylonJS/drigax/fix_skeletal_animation_fix_bone_id_query
Fix 3dsMax glTF skeletal animation export.
2 parents 2679593 + 0ec37a1 commit 269718a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3ds Max/Max2Babylon/Exporter/BabylonExporter.Skeleton.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ private BabylonBone[] ExportBones(IIGameSkin skin)
309309
// create the bone
310310
BabylonBone bone = new BabylonBone()
311311
{
312-
id = isBabylonExported ? node.MaxNode.GetGuid().ToString()+"-bone" : node.MaxNode.GetGuid().ToString(), // the suffix "-bone" is added in babylon export format to assure the uniqueness of IDs
312+
id = node.MaxNode.GetGuid().ToString() + "-bone",// the suffix "-bone" is added in babylon export format to assure the uniqueness of IDs
313313
name = node.Name,
314314
index = nodeIndices.IndexOf(node.NodeID),
315315
parentBoneIndex = parentIndex,

0 commit comments

Comments
 (0)