@@ -556,11 +556,11 @@ Bool MMDMeshManagerObject::LoadPMX(
556556 maxon::BaseArray<maxon::BaseArray<Float32>> joint_weight_maps;
557557 if (setting.import_weights )
558558 {
559- const Int32 jc = bone_list.GetCount ();
559+ const Int jc = bone_list.GetCount ();
560560 joint_weight_maps.Resize (jc) iferr_return;
561- for (Int32 j = 0 ; j < jc; ++j)
561+ for (Int j = 0 ; j < jc; ++j)
562562 {
563- joint_weight_maps[j].Resize (static_cast <Int32 >(vertex_count)) iferr_return;
563+ joint_weight_maps[j].Resize (static_cast <Int >(vertex_count)) iferr_return;
564564 }
565565 }
566566
@@ -587,10 +587,10 @@ Bool MMDMeshManagerObject::LoadPMX(
587587
588588 if (setting.import_weights && weight_tag)
589589 {
590- const Int32 jc = bone_list.GetCount ();
591- for (Int32 j = 0 ; j < jc; ++j)
590+ const Int jc = bone_list.GetCount ();
591+ for (Int j = 0 ; j < jc; ++j)
592592 {
593- if (!weight_tag->SetWeightMap (j , joint_weight_maps[j].GetFirst (), static_cast <Int32>(vertex_count)))
593+ if (!weight_tag->SetWeightMap (static_cast <Int32>(j) , joint_weight_maps[j].GetFirst (), static_cast <Int32>(vertex_count)))
594594 return false ;
595595 }
596596 }
@@ -1138,9 +1138,9 @@ Bool MMDMeshManagerObject::LoadPMX(
11381138 maxon::BaseArray<maxon::BaseArray<Float32>> joint_weight_maps;
11391139 if (setting.import_weights )
11401140 {
1141- const Int32 jc = bone_list.GetCount ();
1141+ const Int jc = bone_list.GetCount ();
11421142 joint_weight_maps.Resize (jc) iferr_return;
1143- for (Int32 j = 0 ; j < jc; ++j)
1143+ for (Int j = 0 ; j < jc; ++j)
11441144 {
11451145 joint_weight_maps[j].Resize (part_vertex_count) iferr_return;
11461146 }
@@ -1187,10 +1187,10 @@ Bool MMDMeshManagerObject::LoadPMX(
11871187
11881188 if (setting.import_weights && weight_tag)
11891189 {
1190- const Int32 jc = bone_list.GetCount ();
1191- for (Int32 j = 0 ; j < jc; ++j)
1190+ const Int jc = bone_list.GetCount ();
1191+ for (Int j = 0 ; j < jc; ++j)
11921192 {
1193- if (!weight_tag->SetWeightMap (j , joint_weight_maps[j].GetFirst (), part_vertex_count))
1193+ if (!weight_tag->SetWeightMap (static_cast <Int32>(j) , joint_weight_maps[j].GetFirst (), part_vertex_count))
11941194 return false ;
11951195 }
11961196 }
0 commit comments