Revision: 38844
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38844
Author: aligorith
Date: 2011-07-30 05:04:49 +0000 (Sat, 30 Jul 2011)
Log Message:
-----------
Bugfix: When only one handle was selected in Graph Editor, the line of
the other handle were not drawn
This only happened when the "only on selected keyframes" option was
enabled
Modified Paths:
--------------
branches/soc-2011-pepper/source/blender/editors/space_graph/graph_draw.c
Modified:
branches/soc-2011-pepper/source/blender/editors/space_graph/graph_draw.c
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/space_graph/graph_draw.c
2011-07-30 04:36:40 UTC (rev 38843)
+++ branches/soc-2011-pepper/source/blender/editors/space_graph/graph_draw.c
2011-07-30 05:04:49 UTC (rev 38844)
@@ -356,10 +356,6 @@
float *fp;
unsigned char col[4];
- /* if only selected keyframes have handles shown, skip the
first round */
- if ((sel == 0) && (sipo->flag & SIPO_SELVHANDLESONLY))
- continue;
-
for (b= 0; b < fcu->totvert; b++, prevbezt=bezt, bezt++) {
/* if only selected keyframes can get their handles
shown,
* check that keyframe is selected
@@ -372,7 +368,7 @@
/* draw handle with appropriate set of colors if
selection is ok */
if ((bezt->f2 & SELECT)==sel) {
fp= bezt->vec[0];
-
+
/* only draw first handle if previous segment
had handles */
if ( (!prevbezt && (bezt->ipo==BEZT_IPO_BEZ))
|| (prevbezt && (prevbezt->ipo==BEZT_IPO_BEZ)) )
{
@@ -382,14 +378,14 @@
glVertex2fv(fp); glVertex2fv(fp+3);
}
-
+
/* only draw second handle if this segment is
bezier */
if (bezt->ipo == BEZT_IPO_BEZ)
{
UI_GetThemeColor3ubv(basecol +
bezt->h2, col);
col[3]= drawFCurveFade(fcu) * 255;
glColor4ubv((GLubyte *)col);
-
+
glVertex2fv(fp+3); glVertex2fv(fp+6);
}
}
@@ -402,7 +398,7 @@
UI_GetThemeColor3ubv(basecol +
bezt->h1, col);
col[3]= drawFCurveFade(fcu) * 255;
glColor4ubv((GLubyte *)col);
-
+
glVertex2fv(fp); glVertex2fv(fp+3);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs