diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-05-08 07:59:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-05-08 07:59:30 +0300 |
commit | 57b473a10a9c8ac6bed9db12eb3ce7800ecb1681 (patch) | |
tree | 41d87c6d7d4999d2d87b0ebf735b220355c8dcfc /source/blender | |
parent | e46b9de6abbeb30f3267f656148c281b40cfad8e (diff) | |
parent | 5ec6bcd4748e0b78f76369ec78294f8c0c2921f0 (diff) |
Merge branch 'blender-v2.93-release'
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/windowmanager/intern/wm_playanim.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_playanim.c b/source/blender/windowmanager/intern/wm_playanim.c index 6e97476950e..b6405288a0b 100644 --- a/source/blender/windowmanager/intern/wm_playanim.c +++ b/source/blender/windowmanager/intern/wm_playanim.c @@ -489,6 +489,13 @@ static void draw_display_buffer(PlayState *ps, ImBuf *ibuf) BLI_rctf_init(&canvas, 0.0f, 1.0f, 0.0f, 1.0f); BLI_rctf_init(&preview, 0.0f, 1.0f, 0.0f, 1.0f); + if (ps->draw_flip[0]) { + SWAP(float, canvas.xmin, canvas.xmax); + } + if (ps->draw_flip[1]) { + SWAP(float, canvas.ymin, canvas.ymax); + } + immAttr2f(texCoord, canvas.xmin, canvas.ymin); immVertex2f(pos, preview.xmin, preview.ymin); |