Timeline Notifier Listener:

* Added ND_FRAME_RANGE to the header listener, changing frame range in Properties Window didn't update it in the timeline, reported by Hardworker in IRC. Thanks! 
* Main Area Listener doesn't listen to all NC_SCENE Notifiers now, only selected ND Notifiers, like the header does. This is more efficient. If there is a reason to let it listen to all NC_SCENE notifiers, please tell me. :)
This commit is contained in:
Thomas Dinges 2010-08-28 15:04:42 +00:00
parent f28b5e672e
commit 76918e6f90

@ -509,9 +509,14 @@ static void time_main_area_listener(ARegion *ar, wmNotifier *wmn)
break; break;
case NC_SCENE: case NC_SCENE:
ED_region_tag_redraw(ar); switch (wmn->data) {
break; case ND_FRAME:
case ND_FRAME_RANGE:
case ND_KEYINGSET:
case ND_RENDER_OPTIONS:
ED_region_tag_redraw(ar);
break;
}
} }
} }
@ -540,6 +545,7 @@ static void time_header_area_listener(ARegion *ar, wmNotifier *wmn)
case NC_SCENE: case NC_SCENE:
switch (wmn->data) { switch (wmn->data) {
case ND_FRAME: case ND_FRAME:
case ND_FRAME_RANGE:
case ND_KEYINGSET: case ND_KEYINGSET:
case ND_RENDER_OPTIONS: case ND_RENDER_OPTIONS:
ED_region_tag_redraw(ar); ED_region_tag_redraw(ar);