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:
authorCampbell Barton <ideasman42@gmail.com>2019-12-17 01:51:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-12-17 01:53:25 +0300
commit7e15638cceaf570995ebd7fcd719914885202ccc (patch)
treeaba1c9d0fada3bb4b55d8945c05224344a0263bb /source/blender/makesrna/intern/rna_image.c
parent96ebdbc90ff93f55e202997334ef3ff811f497fb (diff)
Cleanup: style, always use braces
Diffstat (limited to 'source/blender/makesrna/intern/rna_image.c')
-rw-r--r--source/blender/makesrna/intern/rna_image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c
index 7a03bdb952b..d07bf542954 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -317,8 +317,9 @@ static void rna_Image_active_tile_set(PointerRNA *ptr,
Image *image = (Image *)ptr->data;
ImageTile *tile = (ImageTile *)value.data;
const int index = BLI_findindex(&image->tiles, tile);
- if (index != -1)
+ if (index != -1) {
image->active_tile_index = index;
+ }
}
static bool rna_Image_has_data_get(PointerRNA *ptr)