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
path: root/source
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-28 21:56:34 +0300
committerJacques Lucke <jacques@blender.org>2020-07-28 21:56:34 +0300
commitcd3be9c46dafe834f44526889761025495a735a1 (patch)
tree31f670b23314b62041ee4640179cf0abf259c5d1 /source
parentc3f6227f303a9ee379d5b88d5952ae589cb8782c (diff)
Cleanup: too small loop variable
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/material.c3
1 files changed, 1 insertions, 2 deletions
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;