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>2012-08-17 17:00:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-17 17:00:11 +0400
commit28458168638e8fe5122bcf03ede5148fcdd3d271 (patch)
tree23c53b88f348bde4fe70404cf3cc62a6f0f18baf /source/blender/editors/space_image
parent6547b1e7707c975ac68f7e4833836af146fce71c (diff)
HDR color picking was not working for node space
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/image_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index 9e16f984e09..b969d898882 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -1975,7 +1975,7 @@ int ED_space_image_color_sample(SpaceImage *sima, ARegion *ar, int mval[2], floa
if (ibuf->rect_float) {
fp = (ibuf->rect_float + (ibuf->channels) * (y * ibuf->x + x));
- if (ibuf->profile == IB_PROFILE_LINEAR_RGB) {
+ if (ELEM(ibuf->profile, IB_PROFILE_LINEAR_RGB, IB_PROFILE_NONE)) {
linearrgb_to_srgb_v3_v3(r_col, fp);
}
else {