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:
authorTon Roosendaal <ton@blender.org>2010-12-27 12:43:22 +0300
committerTon Roosendaal <ton@blender.org>2010-12-27 12:43:22 +0300
commitb72bffd70cd07f65494ce3ba998714c3753770a4 (patch)
tree81a08a3a9eda6f97779fc03728e25985b64111eb /source/blender/editors/space_node/node_draw.c
parent71eb4a23125812d50d1a6854eeceb10c97311619 (diff)
Bug report #25384
Node editor Some nodes - when muted - didn't draw a red line to indicate a pass-on action. Stil, the node then is muted and either passes on a buffer of same type, or just black. To more clearly indicate muting, it now draws the header in a reddish blended color too.
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r--source/blender/editors/space_node/node_draw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index 0e7fb90a115..9019b1815a4 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -662,6 +662,9 @@ static void node_draw_basis(const bContext *C, ARegion *ar, SpaceNode *snode, bN
UI_ThemeColorShade(color_id, -20);
else
UI_ThemeColor(color_id);
+
+ if(node->flag & NODE_MUTED)
+ UI_ThemeColorBlend(color_id, TH_REDALERT, 0.5f);
uiSetRoundBox(3);
uiRoundBox(rct->xmin, rct->ymax-NODE_DY, rct->xmax, rct->ymax, BASIS_RAD);