Big Commit.
Now time-markers work in all time-related spaces (i.e. Ipo, Action Editor, NLA editor, TimeLine, Sound). The hotkeys and functionality set should be the same for each of these modes (with a few exceptions still). I've had to change a few hotkeys here and there, so hopefully they aren't too bad. Marker Operations: MKEY - Add Marker SHIFT MKEY - Rename marker (was CTRL MKEY) XKEY - Delete Marker PAGE UP - Jump to next marker PAGE DOWN - Jump to previous marker CTRL A - Select all markers SHIFT G - Transform markers (NLA, IPO, Action) G - Transform markers (Sound, Timeline) CTRL SHIFT D - Duplicate markers (NLA, IPO, Action) SHIFT D - Duplicate markers (Sound, Timeline) BKEY - select markers and other keyframes (if any) I've also made a few little tool additions to NLA and Action editors: * NLA editor - Snap To Frame. Now with the option to offset strip so that it starts at the current frame. Added menus for this. * Action editor - Snap To Frame A few new menus for this too
This commit is contained in:
@@ -66,6 +66,7 @@
|
||||
#include "BSE_drawipo.h"
|
||||
#include "BSE_editnla_types.h"
|
||||
#include "BSE_headerbuttons.h"
|
||||
#include "BSE_time.h"
|
||||
|
||||
#include "BIF_editnla.h"
|
||||
#include "BIF_gl.h"
|
||||
@@ -644,6 +645,7 @@ static void nla_blockhandlers(ScrArea *sa)
|
||||
|
||||
void drawnlaspace(ScrArea *sa, void *spacedata)
|
||||
{
|
||||
SpaceNla *snla= G.snla;
|
||||
float col[3];
|
||||
short ofsx = 0, ofsy = 0;
|
||||
|
||||
@@ -687,6 +689,9 @@ void drawnlaspace(ScrArea *sa, void *spacedata)
|
||||
glScissor(ofsx+G.v2d->mask.xmin, ofsy+G.v2d->mask.ymin, ( ofsx+G.v2d->mask.xmax-1)-(ofsx+G.v2d->mask.xmin)+1, ( ofsy+G.v2d->mask.ymax-1)-( ofsy+G.v2d->mask.ymin)+1);
|
||||
myortho2 (G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax);
|
||||
draw_cfra_action();
|
||||
|
||||
/* draw markers */
|
||||
draw_markers_timespace(&(snla->v2d));
|
||||
|
||||
/* Draw scroll */
|
||||
mywinset(curarea->win); // reset scissor too
|
||||
|
||||
Reference in New Issue
Block a user