Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-11-06 15:27:03 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-11-06 16:24:50 +0300
commit94ce248b30e8c43ac3108c2d670a1d6a42516f87 (patch)
tree47dd7c4f65c0b16380f8d61f66d3e23900fc35ce /source/blender/io
parent047819e72805cdf34e5966453609b664e92a912f (diff)
Cleanup: Alembic, simplify expression
Change `1 + current_mat++` to `++current_mat`. No functional changes.
Diffstat (limited to 'source/blender/io')
-rw-r--r--source/blender/io/alembic/intern/abc_reader_mesh.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/alembic/intern/abc_reader_mesh.cc b/source/blender/io/alembic/intern/abc_reader_mesh.cc
index 93520087d83..c3576ccf259 100644
--- a/source/blender/io/alembic/intern/abc_reader_mesh.cc
+++ b/source/blender/io/alembic/intern/abc_reader_mesh.cc
@@ -727,7 +727,7 @@ void AbcMeshReader::assign_facesets_to_mpoly(const ISampleSelector &sample_sel,
const std::string &grp_name = face_sets[i];
if (r_mat_map.find(grp_name) == r_mat_map.end()) {
- r_mat_map[grp_name] = 1 + current_mat++;
+ r_mat_map[grp_name] = ++current_mat;
}
const int assigned_mat = r_mat_map[grp_name];