Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2011-07-26 17:49:39 +0400
committerJoshua Leung <aligorith@gmail.com>2011-07-26 17:49:39 +0400
commitc0373fb7ea2b6d36b57a7c43706626aa254c70b3 (patch)
treef9c29b2caceb306f625ff98946591aea8a6918c0 /source/blender/editors/space_graph
parent785e634c231542b5eb481946c93a3f8c65ad73a1 (diff)
startup.blend Theming/AnimEditor Defaults Tweaks
- Default size of Graph Editor handle vertices is now 4 (up from 3). This "small" change seems to be enough to make a substantial difference when it comes to actually differentiating between these - "Only Selected" DopeSheet filter is enabled for new Graph Editor instances by default. It helps hone in on the F-Curves of the data most animators hope to just be refining the motion for (i.e. the selected stuff) - "Only Selected Keyframe Handles" is now enabled, to reduce clutter from handles of nearby keys getting in the way.
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r--source/blender/editors/space_graph/graph_draw.c2
-rw-r--r--source/blender/editors/space_graph/space_graph.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c
index a1b8cf0df91..f668b4b4a5f 100644
--- a/source/blender/editors/space_graph/graph_draw.c
+++ b/source/blender/editors/space_graph/graph_draw.c
@@ -684,6 +684,7 @@ static void draw_fcurve_curve_bezts (bAnimContext *ac, ID *id, FCurve *fcu, View
}
/* draw curve between first and last keyframe (if there are enough to do so) */
+ // TODO: optimise this to not have to calc stuff out of view too?
while (b--) {
if (prevbezt->ipo==BEZT_IPO_CONST) {
/* Constant-Interpolation: draw segment between previous keyframe and next, but holding same value */
@@ -707,6 +708,7 @@ static void draw_fcurve_curve_bezts (bAnimContext *ac, ID *id, FCurve *fcu, View
*/
/* resol depends on distance between points (not just horizontal) OR is a fixed high res */
+ // TODO: view scale should factor into this someday too...
if (fcu->driver)
resol= 32;
else
diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c
index 6a548a58507..fea9e5d71e8 100644
--- a/source/blender/editors/space_graph/space_graph.c
+++ b/source/blender/editors/space_graph/space_graph.c
@@ -186,6 +186,10 @@ static void graph_init(struct wmWindowManager *UNUSED(wm), ScrArea *sa)
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;
ED_area_tag_refresh(sa);
}