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>2011-03-09 04:25:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-09 04:25:59 +0300
commit53139432dd5dd308c44cb3c536f24913afa7ccb2 (patch)
treed0d6c8f5311147a11613a3448aca28a784905d65 /source/blender/makesrna/intern/rna_image.c
parent3f9bbde4a6668b19a7a7f291dc2305e6341d5b5d (diff)
image.depth, 96/128 for float color images, was 24/32 for byte images.
also use <> for system includes
Diffstat (limited to 'source/blender/makesrna/intern/rna_image.c')
-rw-r--r--source/blender/makesrna/intern/rna_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c
index 6fa0e2bae82..64b7e589ecb 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -234,7 +234,7 @@ static int rna_Image_depth_get(PointerRNA *ptr)
if(!ibuf)
depth= 0;
else if(ibuf->rect_float)
- depth= 128;
+ depth= ibuf->depth * 4;
else
depth= ibuf->depth;