Cleanup: rename draw_markers_time -> ED_markers_draw
[blender.git] / source / blender / editors / space_nla / space_nla.c
index 4d4f27cf1ad6a15623f650afc2b74ab0e2f902dd..ee2914ad227e282051e04b5df2d78b88e8ed2452 100644 (file)
@@ -38,7 +38,6 @@
 #include "MEM_guardedalloc.h"
 
 #include "BLI_blenlib.h"
-#include "BLI_math.h"
 #include "BLI_utildefines.h"
 
 #include "BKE_context.h"
@@ -306,7 +305,7 @@ static void nla_main_area_draw(const bContext *C, ARegion *ar)
        
        /* markers */
        UI_view2d_view_orthoSpecial(ar, v2d, 1);
-       draw_markers_time(C, 0);
+       ED_markers_draw(C, DRAW_MARKERS_MARGIN);
        
        /* preview range */
        UI_view2d_view_ortho(v2d);
@@ -544,7 +543,7 @@ void ED_spacetype_nla(void)
        art = MEM_callocN(sizeof(ARegionType), "spacetype nla region");
        art->regionid = RGN_TYPE_CHANNELS;
        art->prefsizex = 200;
-       art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D;
+       art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D | ED_KEYMAP_FRAMES;
        
        art->init = nla_channel_area_init;
        art->draw = nla_channel_area_draw;