bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->walk );
bitpack_qf32( ctx, 16, 0.0f, 120.0f, &animator->walk_timer );
- /* we can do variable length exchanges now? */
-
- bitpack_bytes( ctx, sizeof(animator->foot_anchor), animator->foot_anchor );
bitpack_bytes( ctx, 8, &animator->outro_type );
- bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->outro_t );
- bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->commit_t );
+ if( animator->outro_type ){
+ bitpack_bytes(ctx, sizeof(animator->foot_anchor), animator->foot_anchor );
+ bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->outro_t );
+ bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->commit_t );
+ }
}
#endif /* PLAYER_DEVICE_WALK_H */