Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-03-04 13:10:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-04 13:13:32 +0300
commita9dc1f6d00a9ca2606504e401650d2b5be318855 (patch)
treefbe119bbd46e1e14176d7861f65a00e1674905de /source/blender/windowmanager
parentfb330dd11098b9df379d84fe181ce7966d89674c (diff)
Cleanup: avoid the term old when storing/restoring context variables
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 80c01153951..b36d8f69886 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -3101,9 +3101,9 @@ void wm_event_do_handlers(bContext *C)
if (((is_playing_sound == 1) && (is_playing_screen == 0)) ||
((is_playing_sound == 0) && (is_playing_screen == 1))) {
- wmWindow *context_old_win = CTX_wm_window(C);
- bScreen *context_screen_win = CTX_wm_screen(C);
- Scene *context_scene_win = CTX_data_scene(C);
+ wmWindow *win_ctx = CTX_wm_window(C);
+ bScreen *screen_stx = CTX_wm_screen(C);
+ Scene *scene_ctx = CTX_data_scene(C);
CTX_wm_window_set(C, win);
CTX_wm_screen_set(C, screen);
@@ -3111,9 +3111,9 @@ void wm_event_do_handlers(bContext *C)
ED_screen_animation_play(C, -1, 1);
- CTX_data_scene_set(C, context_scene_win);
- CTX_wm_screen_set(C, context_screen_win);
- CTX_wm_window_set(C, context_old_win);
+ CTX_data_scene_set(C, scene_ctx);
+ CTX_wm_screen_set(C, screen_stx);
+ CTX_wm_window_set(C, win_ctx);
}
if (is_playing_sound == 0) {