[Bf-blender-cvs] [cd3be9c46da] master: Cleanup: too small loop variable

Jacques Lucke noreply at git.blender.org
Tue Jul 28 20:57:39 CEST 2020


Commit: cd3be9c46dafe834f44526889761025495a735a1
Author: Jacques Lucke
Date:   Tue Jul 28 20:56:34 2020 +0200
Branches: master
https://developer.blender.org/rBcd3be9c46dafe834f44526889761025495a735a1

Cleanup: too small loop variable

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

M	source/blender/blenkernel/intern/material.c

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

diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index 34835fd1e35..aa72493e472 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -959,14 +959,13 @@ void BKE_object_material_array_assign(Main *bmain,
                                       const bool to_object_only)
 {
   int actcol_orig = ob->actcol;
-  short i;
 
   while ((ob->totcol > totcol) && BKE_object_material_slot_remove(bmain, ob)) {
     /* pass */
   }
 
   /* now we have the right number of slots */
-  for (i = 0; i < totcol; i++) {
+  for (int i = 0; i < totcol; i++) {
     if (to_object_only && ob->matbits[i] == 0) {
       /* If we only assign to object, and that slot uses obdata material, do nothing. */
       continue;



More information about the Bf-blender-cvs mailing list