Commit: 94ce248b30e8c43ac3108c2d670a1d6a42516f87
Author: Sybren A. Stüvel
Date:   Fri Nov 6 13:27:03 2020 +0100
Branches: master
https://developer.blender.org/rB94ce248b30e8c43ac3108c2d670a1d6a42516f87

Cleanup: Alembic, simplify expression

Change `1 + current_mat++` to `++current_mat`.

No functional changes.

===================================================================

M       source/blender/io/alembic/intern/abc_reader_mesh.cc

===================================================================

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];

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to