Do not highlight non-selected active node with active outline
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 1 Aug 2012 09:44:25 +0000 (09:44 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 1 Aug 2012 09:44:25 +0000 (09:44 +0000)
This would match other areas in Blender.

source/blender/editors/space_node/drawnode.c
source/blender/editors/space_node/node_draw.c

index 820245ed03f0c96db71c56fcbe57203400a568cc..8688bee0a732605d4bd7a1ed378a356f8fec0342 100644 (file)
@@ -1036,7 +1036,7 @@ static void node_draw_frame(const bContext *C, ARegion *ar, SpaceNode *snode, bN
        glDisable(GL_BLEND);
 
        /* outline active and selected emphasis */
-       if (node->flag & (NODE_ACTIVE | SELECT)) {
+       if (node->flag & SELECT) {
                glEnable(GL_BLEND);
                glEnable(GL_LINE_SMOOTH);
                
index f8ce572ee46cf30d0021fc7cad1fedf0e782f0cd..92b1fca673d31d76f2b653341a802f0a4c7de9b9 100644 (file)
@@ -813,7 +813,7 @@ static void node_draw_basis(const bContext *C, ARegion *ar, SpaceNode *snode, bN
        glDisable(GL_BLEND);
 
        /* outline active and selected emphasis */
-       if (node->flag & (NODE_ACTIVE | SELECT)) {
+       if (node->flag & SELECT) {
                glEnable(GL_BLEND);
                glEnable(GL_LINE_SMOOTH);