Cleanup: quiet a couple more compilation warnings on MSVC

This commit is contained in:
Kévin Dietrich
2022-04-08 18:06:09 +02:00
parent c0a9ec222f
commit 2c19d2eb2e
2 changed files with 2 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ void ABCCurveWriter::do_write(HierarchyContext &context)
}
}
orders.push_back(nurbs->orderu);
orders.push_back(static_cast<uint8_t>(nurbs->orderu));
vert_counts.push_back(verts.size() - current_point_count);
}

View File

@@ -163,7 +163,7 @@ void read_mverts(Mesh &mesh, const P3fArraySamplePtr positions, const N3fArraySa
}
if (normals) {
float(*vert_normals)[3] = BKE_mesh_vertex_normals_for_write(&mesh);
for (const int i : IndexRange(normals->size())) {
for (const int64_t i : IndexRange(normals->size())) {
Imath::V3f nor_in = (*normals)[i];
copy_zup_from_yup(vert_normals[i], nor_in.getValue());
}