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:
authorJacques Lucke <jacques@blender.org>2020-07-03 17:54:08 +0300
committerJacques Lucke <jacques@blender.org>2020-07-03 17:54:08 +0300
commit1019c9f582f2cb588eea16ac0e23abea71de6308 (patch)
treedc5f8cf49639f54dd65252f0f3c0400713ec68bb /source/blender/editors
parent883f9dd6e5f14e9139b35a39b62b08a346dc0a96 (diff)
Clang-Tidy: enable bugprone-too-small-loop-variable
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/render/render_shading.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c
index 49ab2c485b1..0e15db17e14 100644
--- a/source/blender/editors/render/render_shading.c
+++ b/source/blender/editors/render/render_shading.c
@@ -238,7 +238,7 @@ static int material_slot_assign_exec(bContext *C, wmOperator *UNUSED(op))
else {
/* Find the first matching material.
* Note: there may be multiple but that's not a common use case. */
- for (short i = 0; i < ob->totcol; i++) {
+ for (int i = 0; i < ob->totcol; i++) {
const Material *mat = BKE_object_material_get(ob, i + 1);
if (mat_active == mat) {
mat_nr_active = i;
@@ -339,7 +339,7 @@ static int material_slot_de_select(bContext *C, bool select)
else {
/* Find the first matching material.
* Note: there may be multiple but that's not a common use case. */
- for (short i = 0; i < ob->totcol; i++) {
+ for (int i = 0; i < ob->totcol; i++) {
const Material *mat = BKE_object_material_get(ob, i + 1);
if (mat_active == mat) {
mat_nr_active = i;