@@ -198,7 +198,7 @@ static bool ExportSkelAnimation(const Animation &anim, SkelAnimation *dst, std::
198
198
199
199
std::vector<value::token> joints (joint_idMap.size ());
200
200
for (const auto &channels : anim.channels_map ) {
201
- joints[joint_idMap.at (channels.first )] = value::token (channels.first );
201
+ joints[size_t ( joint_idMap.at (channels.first ) )] = value::token (channels.first );
202
202
}
203
203
dst->joints = joints;
204
204
@@ -307,7 +307,7 @@ static bool ExportSkelAnimation(const Animation &anim, SkelAnimation *dst, std::
307
307
if (tx_it->second .translations .static_value ) {
308
308
uint64_t joint_id = joint_idMap.at (channels.first );
309
309
if ((joint_id +1 ) > static_txs.size ()) {
310
- static_txs.resize (joint_id+1 );
310
+ static_txs.resize (size_t ( joint_id+1 ) );
311
311
}
312
312
static_txs[size_t (joint_id)] = tx_it->second .translations .static_value .value ();
313
313
}
@@ -382,7 +382,7 @@ static bool ExportSkelAnimation(const Animation &anim, SkelAnimation *dst, std::
382
382
if (rot_it->second .rotations .static_value ) {
383
383
uint64_t joint_id = joint_idMap.at (channels.first );
384
384
if ((joint_id +1 ) > static_rots.size ()) {
385
- static_rots.resize (joint_id+1 );
385
+ static_rots.resize (size_t ( joint_id+1 ) );
386
386
}
387
387
value::quatf v;
388
388
v[0 ] = rot_it->second .rotations .static_value .value ()[0 ];
@@ -457,7 +457,7 @@ static bool ExportSkelAnimation(const Animation &anim, SkelAnimation *dst, std::
457
457
if (scale_it->second .rotations .static_value ) {
458
458
uint64_t joint_id = joint_idMap.at (channels.first );
459
459
if ((joint_id +1 ) > static_scales.size ()) {
460
- static_scales.resize (joint_id+1 );
460
+ static_scales.resize (size_t ( joint_id+1 ) );
461
461
}
462
462
value::half3 v;
463
463
v[0 ] = value::float_to_half_full (scale_it->second .scales .static_value .value ()[0 ]);
@@ -492,7 +492,7 @@ static bool ExportSkelAnimation(const Animation &anim, SkelAnimation *dst, std::
492
492
493
493
std::vector<value::token> blendShapes (target_idMap.size ());
494
494
for (const auto &target : anim.blendshape_weights_map ) {
495
- blendShapes[target_idMap.at (target.first )] = value::token (target.first );
495
+ blendShapes[size_t ( target_idMap.at (target.first ) )] = value::token (target.first );
496
496
}
497
497
dst->blendShapes = blendShapes;
498
498
@@ -527,7 +527,7 @@ static bool ExportSkelAnimation(const Animation &anim, SkelAnimation *dst, std::
527
527
if (target.second .static_value ) {
528
528
uint64_t target_id = target_idMap.at (target.first );
529
529
if ((target_id +1 ) > static_weights.size ()) {
530
- static_weights.resize (target_id+1 );
530
+ static_weights.resize (size_t ( target_id+1 ) );
531
531
}
532
532
static_weights[size_t (target_id)] = target.second .static_value .value ();
533
533
}
0 commit comments