From 2c19d2eb2e8668bf6dca0e96ce5c361969a6add7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dietrich?= Date: Fri, 8 Apr 2022 18:06:09 +0200 Subject: Cleanup: quiet a couple more compilation warnings on MSVC --- source/blender/io/alembic/exporter/abc_writer_curves.cc | 2 +- source/blender/io/alembic/intern/abc_reader_mesh.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/io/alembic/exporter/abc_writer_curves.cc b/source/blender/io/alembic/exporter/abc_writer_curves.cc index 07bce8fcf7a..4717d3ec26e 100644 --- a/source/blender/io/alembic/exporter/abc_writer_curves.cc +++ b/source/blender/io/alembic/exporter/abc_writer_curves.cc @@ -142,7 +142,7 @@ void ABCCurveWriter::do_write(HierarchyContext &context) } } - orders.push_back(nurbs->orderu); + orders.push_back(static_cast(nurbs->orderu)); vert_counts.push_back(verts.size() - current_point_count); } diff --git a/source/blender/io/alembic/intern/abc_reader_mesh.cc b/source/blender/io/alembic/intern/abc_reader_mesh.cc index f2daae4b90b..fe2b0470432 100644 --- a/source/blender/io/alembic/intern/abc_reader_mesh.cc +++ b/source/blender/io/alembic/intern/abc_reader_mesh.cc @@ -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()); } -- cgit v1.2.3