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:
authorLukas Toenne <lukas.toenne@googlemail.com>2011-04-23 12:30:28 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2011-04-23 12:30:28 +0400
commitf69825e8e87dbb57f620c551f9fd4ff18a4585c6 (patch)
tree57f8dcb994f8f7672f74177d9fb6f0ca22e210be /source/blender/editors/space_node/node_edit.c
parent176e45f88ec1b6e4068c4ed11a3f3821a0d7d794 (diff)
Color info in node editor backdrop now supports color management.
Diffstat (limited to 'source/blender/editors/space_node/node_edit.c')
-rw-r--r--source/blender/editors/space_node/node_edit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c
index ed70e2b05f1..22bbd93de00 100644
--- a/source/blender/editors/space_node/node_edit.c
+++ b/source/blender/editors/space_node/node_edit.c
@@ -1142,11 +1142,12 @@ typedef struct ImageSampleInfo {
int draw;
} ImageSampleInfo;
-static void sample_draw(const bContext *UNUSED(C), ARegion *ar, void *arg_info)
+static void sample_draw(const bContext *C, ARegion *ar, void *arg_info)
{
ImageSampleInfo *info= arg_info;
- draw_nodespace_color_info(ar, info->channels, info->x, info->y, info->col, info->colf);
+ draw_nodespace_color_info(ar, (CTX_data_scene(C)->r.color_mgt_flag & R_COLOR_MANAGEMENT), info->channels,
+ info->x, info->y, info->col, info->colf);
}
static void sample_apply(bContext *C, wmOperator *op, wmEvent *event)