diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_image.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_image.c | 3 |
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) |