~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to source/blender/editors/space_nla/space_nla.c

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
#include "BLI_blenlib.h"
41
41
#include "BLI_math.h"
42
 
#include "BLI_rand.h"
43
42
#include "BLI_utildefines.h"
44
43
 
45
44
#include "BKE_context.h"
206
205
{
207
206
        wmKeyMap *keymap;
208
207
        
 
208
        /* ensure the 2d view sync works - main region has bottom scroller */
 
209
        ar->v2d.scroll = V2D_SCROLL_BOTTOM;
 
210
        
209
211
        UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_LIST, ar->winx, ar->winy);
210
212
        
211
213
        /* own keymap */
284
286
        UI_view2d_grid_draw(v2d, grid, V2D_GRIDLINES_ALL);
285
287
        UI_view2d_grid_free(grid);
286
288
        
 
289
        ED_region_draw_cb_draw(C, ar, REGION_DRAW_PRE_VIEW);
 
290
 
287
291
        /* data */
288
292
        if (ANIM_animdata_get_context(C, &ac)) {
289
293
                /* strips and backdrops */
306
310
        
307
311
        /* preview range */
308
312
        UI_view2d_view_ortho(v2d);
309
 
        ANIM_draw_previewrange(C, v2d);
 
313
        ANIM_draw_previewrange(C, v2d, 0);
310
314
        
 
315
        /* callback */
 
316
        UI_view2d_view_ortho(v2d);
 
317
        ED_region_draw_cb_draw(C, ar, REGION_DRAW_POST_VIEW);
 
318
 
311
319
        /* reset view matrix */
312
320
        UI_view2d_view_restore(C);
313
321
        
345
353
        ED_region_panels(C, ar, 1, NULL, -1);
346
354
}
347
355
 
348
 
static void nla_region_listener(ARegion *ar, wmNotifier *wmn)
 
356
static void nla_region_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa), ARegion *ar, wmNotifier *wmn)
349
357
{
350
358
        /* context changes */
351
359
        switch (wmn->category) {
378
386
}
379
387
 
380
388
 
381
 
static void nla_main_area_listener(ARegion *ar, wmNotifier *wmn)
 
389
static void nla_main_area_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa), ARegion *ar, wmNotifier *wmn)
382
390
{
383
391
        /* context changes */
384
392
        switch (wmn->category) {
422
430
        }
423
431
}
424
432
 
425
 
static void nla_channel_area_listener(ARegion *ar, wmNotifier *wmn)
 
433
static void nla_channel_area_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa), ARegion *ar, wmNotifier *wmn)
426
434
{
427
435
        /* context changes */
428
436
        switch (wmn->category) {
457
465
}
458
466
 
459
467
/* editor level listener */
460
 
static void nla_listener(ScrArea *sa, wmNotifier *wmn)
 
468
static void nla_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn)
461
469
{
462
470
        /* context changes */
463
471
        switch (wmn->category) {