diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-01-16 01:37:36 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-01-16 01:37:36 +0300 |
commit | 09bd5599393280536d0680ef3d879dd51f37ba2d (patch) | |
tree | 3aa0b1ab1ca58539542ec8fba7c424e7f6e5709f /source/blender/src/edittime.c | |
parent | 71a503f31d9d15ae6e1a2f7d579bd28c677b4dd3 (diff) |
== Action Editor ==
Final tweaks to Snapping and Mirroring tools:
* Snap To Nearest Marker
* Mirror Values of Horizontal Axis
* Mirror Over Selected Marker
Diffstat (limited to 'source/blender/src/edittime.c')
-rw-r--r-- | source/blender/src/edittime.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/src/edittime.c b/source/blender/src/edittime.c index 52e16a279ab..5bbcd1098bb 100644 --- a/source/blender/src/edittime.c +++ b/source/blender/src/edittime.c @@ -537,9 +537,7 @@ void make_marker_cfra_list(ListBase *lb, short only_sel) } } -/* *********** End Markers - Markers API *************** */ - -static int find_nearest_timeline_marker(float dx) +int find_nearest_marker_time(float dx) { TimeMarker *marker, *nearest= NULL; float dist, min_dist= 1000000; @@ -556,6 +554,7 @@ static int find_nearest_timeline_marker(float dx) else return (int)floor(dx); } +/* *********** End Markers - Markers API *************** */ /* select/deselect TimeMarker at current frame */ static void select_timeline_marker_frame(int frame, unsigned char shift) { @@ -799,7 +798,7 @@ void winqreadtimespace(ScrArea *sa, void *spacedata, BWinEvent *evt) getmouseco_areawin(mval); areamouseco_to_ipoco(G.v2d, mval, &dx, &dy); - cfra= find_nearest_timeline_marker(dx); + cfra= find_nearest_marker_time(dx); if (G.qual && LR_SHIFTKEY) select_timeline_marker_frame(cfra, 1); |