MCPcopy Create free account
hub / github.com/defold/defold / OutputNodeAnimation

Function OutputNodeAnimation

engine/modelc/src/modelimporter_debug.cpp:432–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432static void OutputNodeAnimation(NodeAnimation* node_animation, int indent)
433{
434 OutputIndent(indent);
435 printf("node: %s\n", node_animation->m_Node->m_Name);
436
437 indent++;
438 OutputIndent(indent);
439 printf("# translation keys: %u\n", node_animation->m_TranslationKeys.Size());
440 for (uint32_t i = 0; i < node_animation->m_TranslationKeys.Size(); ++i)
441 {
442 OutputIndent(indent+1);
443 KeyFrame* key = &node_animation->m_TranslationKeys[i];
444 printf("%.3f: %.3f, %.3f, %.3f\n", key->m_Time, key->m_Value[0], key->m_Value[1], key->m_Value[2]);
445 }
446
447 OutputIndent(indent);
448 printf("# rotation keys: %u\n", node_animation->m_RotationKeys.Size());
449 for (uint32_t i = 0; i < node_animation->m_RotationKeys.Size(); ++i)
450 {
451 OutputIndent(indent+1);
452 KeyFrame* key = &node_animation->m_RotationKeys[i];
453 printf("%.3f: %.3f, %.3f, %.3f, %.3f\n", key->m_Time, key->m_Value[0], key->m_Value[1], key->m_Value[2], key->m_Value[3]);
454 }
455
456 OutputIndent(indent);
457 printf("# scale keys: %u\n", node_animation->m_ScaleKeys.Size());
458 for (uint32_t i = 0; i < node_animation->m_ScaleKeys.Size(); ++i)
459 {
460 OutputIndent(indent+1);
461 KeyFrame* key = &node_animation->m_ScaleKeys[i];
462 printf("%.3f: %.3f, %.3f, %.3f\n", key->m_Time, key->m_Value[0], key->m_Value[1], key->m_Value[2]);
463 }
464}
465
466static void OutputAnimation(Animation* animation, int indent)
467{

Callers 1

OutputAnimationFunction · 0.85

Calls 2

OutputIndentFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected