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 Tönne <lukas.toenne@gmail.com>2014-10-14 12:16:46 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2014-10-14 12:17:06 +0400
commitc08e7e1dc0366c485dbea5ef1209f2cdb616fbb3 (patch)
treeba3bc8286dc948d7a9bef7f6479df6bbc488b559 /source/blender/editors/space_node
parentcd2295f93e11bb53696e5011b083b72d74cdf707 (diff)
Fix T42209: Changing Node Editor header color also changes wire color
The nodes wire was using 'TH_HEADER' flag to get its color and thus would be in sync with the header. Now make it so it uses its 'own' flag (actually 'TH_SYNTAX_R', the only TH_SYNTAX_* which wasn't yet used by the nodes). Also expose the setting to the user so it can be themified. This fixes T42209 Reviewers: lukastoenne Reviewed By: lukastoenne Maniphest Tasks: T42209 Differential Revision: https://developer.blender.org/D827
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r--source/blender/editors/space_node/drawnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index df07d8bdfb1..5a3d4d6312a 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -3444,7 +3444,7 @@ void node_draw_link(View2D *v2d, SpaceNode *snode, bNodeLink *link)
{
bool do_shaded = false;
bool do_triple = false;
- int th_col1 = TH_HEADER, th_col2 = TH_HEADER, th_col3 = TH_WIRE;
+ int th_col1 = TH_SYNTAX_R, th_col2 = TH_SYNTAX_R, th_col3 = TH_WIRE;
if (link->fromsock == NULL && link->tosock == NULL)
return;