Wow =-O On Mar 22, 2013 6:57 AM, "Pablo Vazquez" <[email protected]> wrote:
> Revision: 55505 > > http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55505 > Author: venomgfx > Date: 2013-03-22 12:57:32 +0000 (Fri, 22 Mar 2013) > Log Message: > ----------- > Nodes editor, > Draw an extra outline on hidden nodes that have custom colors, otherwise > you can't recognize them unless you unhide. > > Example: http://pasteall.org/pic/show.php?id=42359 > > Modified Paths: > -------------- > trunk/blender/source/blender/editors/space_node/node_draw.c > > Modified: trunk/blender/source/blender/editors/space_node/node_draw.c > =================================================================== > --- trunk/blender/source/blender/editors/space_node/node_draw.c 2013-03-22 > 12:00:29 UTC (rev 55504) > +++ trunk/blender/source/blender/editors/space_node/node_draw.c 2013-03-22 > 12:57:32 UTC (rev 55505) > @@ -975,7 +975,19 @@ > glDisable(GL_LINE_SMOOTH); > glDisable(GL_BLEND); > } > - > + > + /* custom color inline */ > + if (node->flag & NODE_CUSTOM_COLOR) { > + glEnable(GL_BLEND); > + glEnable(GL_LINE_SMOOTH); > + > + glColor3fv(node->color); > + uiDrawBox(GL_LINE_LOOP, rct->xmin + 1, rct->ymin + 1, rct->xmax > -1, rct->ymax - 1, hiddenrad); > + > + glDisable(GL_LINE_SMOOTH); > + glDisable(GL_BLEND); > + } > + > /* title */ > if (node->flag & SELECT) > UI_ThemeColor(TH_SELECT); > > _______________________________________________ > Bf-blender-cvs mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-blender-cvs > _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
