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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-10-15 11:47:38 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-10-15 11:47:38 +0400
commitabff7cac7e0c682bba013036418cc3ea384d74de (patch)
tree8155b73da938e3e32e3a8251dc5f4d88a0e44829 /source/blender/makesrna/intern/rna_image_api.c
parent27564ed24a8d87a969d66161c487dde2ea9f578b (diff)
Color Management: remove unused function and get rid of unneeded float->byte conversion
Diffstat (limited to 'source/blender/makesrna/intern/rna_image_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_image_api.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_image_api.c b/source/blender/makesrna/intern/rna_image_api.c
index ab501909052..d8ae579cd6b 100644
--- a/source/blender/makesrna/intern/rna_image_api.c
+++ b/source/blender/makesrna/intern/rna_image_api.c
@@ -184,7 +184,10 @@ static void rna_Image_update(Image *image, ReportList *reports)
return;
}
- IMB_rect_from_float(ibuf);
+ if (ibuf->rect)
+ IMB_rect_from_float(ibuf);
+
+ ibuf->userflags |= IB_DISPLAY_BUFFER_INVALID;
}
static void rna_Image_scale(Image *image, ReportList *reports, int width, int height)