diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-26 10:22:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-26 10:22:54 +0400 |
commit | dbde62d12416b75cc8dc0ce71bd101d8d8f42ef5 (patch) | |
tree | 31da398963786c08181f9d1fd96fe7e7994da100 /source/blender/editors/screen | |
parent | 2d39533da8d69425759628f42acd80534c65c122 (diff) |
fix [#30087] operator_context is different for popup and submenu's *TODO, after 2.62*
having context different for menu vs submenu is quite confusing, now they are both: WM_OP_INVOKE_REGION_WIN
this changes WM_menu_invoke behavior.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 4a10193d726..eacf7c7032d 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -3082,6 +3082,9 @@ static int screen_animation_step(bContext *C, wmOperator *UNUSED(op), wmEvent *e } else { if (sync) { + /* note: this is very simplistic, + * its has problem that it may skip too many frames. + * however at least this gives a less jittery playback */ const int step = max_ii(1, floor((wt->duration - sad->last_duration) * FPS)); /* skip frames */ |