diff options
author | Ton Roosendaal <ton@blender.org> | 2005-05-12 00:01:42 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-05-12 00:01:42 +0400 |
commit | 0574768f8897f20e8eca213742e0987d122787c7 (patch) | |
tree | d0ed5584b2b2f09520d8692363344dbff9ff275b /source/blender/blenloader | |
parent | 57f9553b3a67fdf1e152e4cda6a5ed566bc208b2 (diff) |
Animated UI for TimeLine "Play"
Using the Play button in timeline, now uses an event-driven system to
update the animation system and signal windows to redraw. Meaning the
full UI remains responsive!
Check the new Pulldown "Playback" to set which windows you like to see
updated. Same settings is used for LMB 'dragging' frames in Timeline.
Implementation notes;
- the Icon for 'Pause' (or stop) has to be made yet, I commit this from
my laptop... all was coded during a 2 x 5 hour train ride to germany
- the anim playback system (ALT+A too) now uses correct "frames per
second" as maximum speed. Buttons can be found in 3 places in the UI,
also added it as pulldown item
- The system works with 'screen handlers', which has been coded with
using Python (networked) events or verse in mind too. A doc on that
will follow.
- the buttons code has been made 'resistant' to animated UIs too,
preventing flashing of hilites.
- All subloops (like transform) stop playback, with exception of MMB
view manipulations.
As extra; found tweak to make Textured AA fonts draw without distortion.
Looks perfect here on laptop now (like Pixmap fonts) and is 20x faster.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index d9f6251722c..299f0141daa 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -4682,6 +4682,7 @@ static void do_versions(Main *main) } /* set manipulator type */ /* force oops draw if depgraph was set*/ + /* set time line var */ for (sc= main->screen.first; sc; sc= sc->id.next) { ScrArea *sa; for (sa= sc->areabase.first; sa; sa= sa->next) { @@ -4696,7 +4697,11 @@ static void do_versions(Main *main) if ( ((SpaceOops *)sl)->type==SO_DEPSGRAPH) ((SpaceOops *)sl)->type=SO_OOPS; } -#endif +#endif + if(sl->spacetype==SPACE_TIME) { + SpaceTime *stime= (SpaceTime *)sl; + stime->redraws= TIME_ALL_3D_WIN|TIME_ALL_ANIM_WIN; + } } } } |