[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36786] trunk/blender/source/blender/ editors/space_graph/graph_draw.c: int values were not drawing curve handles , yet the handles could still be selected and transformed, and different handle types set.

Campbell Barton ideasman42 at gmail.com
Fri May 20 03:02:02 CEST 2011


Revision: 36786
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36786
Author:   campbellbarton
Date:     2011-05-20 01:02:00 +0000 (Fri, 20 May 2011)
Log Message:
-----------
int values were not drawing curve handles, yet the handles could still be selected and transformed, and different handle types set. disable this check and draw curve handles for int fcurves.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_graph/graph_draw.c

Modified: trunk/blender/source/blender/editors/space_graph/graph_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_graph/graph_draw.c	2011-05-20 00:21:38 UTC (rev 36785)
+++ trunk/blender/source/blender/editors/space_graph/graph_draw.c	2011-05-20 01:02:00 UTC (rev 36786)
@@ -320,7 +320,9 @@
 	/* don't draw handle lines if handles are not to be shown */
 	if (	(sipo->flag & SIPO_NOHANDLES) || /* handles shouldn't be shown anywhere */
 			(fcu->flag & FCURVE_PROTECTED) || /* keyframes aren't editable */
+#if 0		/* handles can still be selected and handle types set, better draw - campbell */
 			(fcu->flag & FCURVE_INT_VALUES) || /* editing the handles here will cause weird/incorrect interpolation issues */
+#endif
 			((fcu->grp) && (fcu->grp->flag & AGRP_PROTECTED)) || /* group that curve belongs to is not editable */
 			(fcu->totvert <= 1) /* do not show handles if there is only 1 keyframe, otherwise they all clump together in an ugly ball */
 		) 




More information about the Bf-blender-cvs mailing list