[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39021] branches/soc-2011-pepper/source/ blender/editors/space_graph/space_graph.c: Bugfix: Setting of new default settings for new Graph Editors was done

Joshua Leung aligorith at gmail.com
Thu Aug 4 16:06:30 CEST 2011


Revision: 39021
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39021
Author:   aligorith
Date:     2011-08-04 14:06:30 +0000 (Thu, 04 Aug 2011)
Log Message:
-----------
Bugfix: Setting of new default settings for new Graph Editors was done
in wrong place, leading to loss of settings everytime the view changed
(i.e. after open/saving)

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-08-04 13:55:38 UTC (rev 39020)
+++ branches/soc-2011-pepper/source/blender/editors/space_graph/space_graph.c	2011-08-04 14:06:30 UTC (rev 39021)
@@ -110,6 +110,10 @@
 	sipo->ads= MEM_callocN(sizeof(bDopeSheet), "GraphEdit DopeSheet");
 	sipo->ads->source= (ID *)scene;
 	
+	/* 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;
+	
 	/* header */
 	ar= MEM_callocN(sizeof(ARegion), "header for graphedit");
 	
@@ -187,10 +191,6 @@
 		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;
-
 	ED_area_tag_refresh(sa);
 }
 




More information about the Bf-blender-cvs mailing list