[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38729] branches/soc-2011-pepper/source/ blender/editors/space_graph/space_graph.c: Fix for previous commit - got settings init in wrong place

Joshua Leung aligorith at gmail.com
Tue Jul 26 15:56:17 CEST 2011


Revision: 38729
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38729
Author:   aligorith
Date:     2011-07-26 13:56:16 +0000 (Tue, 26 Jul 2011)
Log Message:
-----------
Fix for previous commit - got settings init in wrong place

Modified Paths:
--------------
    branches/soc-2011-pepper/source/blender/editors/space_graph/space_graph.c

Modified: branches/soc-2011-pepper/source/blender/editors/space_graph/space_graph.c
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/space_graph/space_graph.c	2011-07-26 13:49:39 UTC (rev 38728)
+++ branches/soc-2011-pepper/source/blender/editors/space_graph/space_graph.c	2011-07-26 13:56:16 UTC (rev 38729)
@@ -184,13 +184,12 @@
 	/* init dopesheet data if non-existant (i.e. for old files) */
 	if (sipo->ads == NULL) {
 		sipo->ads= MEM_callocN(sizeof(bDopeSheet), "GraphEdit DopeSheet");
-		
 		sipo->ads->source= (ID *)(G.main->scene.first); // FIXME: this is a really nasty hack here for now...
-		
-		/* settings for making it easier by default to just see what you're interested in tweaking */
-		sipo->ads->filterflag |= ADS_FILTER_ONLYSEL;
-		sipo->flag |= SIPO_SELVHANDLESONLY;
 	}
+	
+	/* settings for making it easier by default to just see what you're interested in tweaking */
+	sipo->ads->filterflag |= ADS_FILTER_ONLYSEL;
+	sipo->flag |= SIPO_SELVHANDLESONLY;
 
 	ED_area_tag_refresh(sa);
 }




More information about the Bf-blender-cvs mailing list