Skip to content

Commit a53c2fa

Browse files
committed
VIRO-2899: keyframe animations on meshless nodes
Keyframe animations were only being exported for nodes that had meshes. This was causing animation issues, most notably with the dragon FBX model, where the ball was not animating.
1 parent 3c4715a commit a53c2fa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ViroFBX/VROFBXExporter.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,14 @@ void VROFBXExporter::exportNode(FbxScene *scene, FbxNode *node, int depth, bool
277277
pinfo(" No skeleton found, will not export skin");
278278
}
279279

280-
pinfo(" Exporting keyframe animations");
281-
exportSampledKeyframeAnimations(scene, node, outNode);
282-
283280
pinfo(" Exporting blend shape animations");
284281
exportBlendShapeAnimations(scene, node, outNode);
285282
}
283+
284+
// Keyframe animations can be contained in mesh-less nodes
285+
pinfo(" Exporting keyframe animations");
286+
exportSampledKeyframeAnimations(scene, node, outNode);
287+
286288
for (int i = 0; i < node->GetChildCount(); i++) {
287289
if (isExportableNode(node->GetChild(i))) {
288290
exportNode(scene, node->GetChild(i), depth, compressTextures,

0 commit comments

Comments
 (0)