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>2021-05-08 07:27:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-05-08 07:32:03 +0300
commit5ec6bcd4748e0b78f76369ec78294f8c0c2921f0 (patch)
tree0974e3cfb109a8b8b4eb07b3270eab1a94aaa331 /source/blender/windowmanager
parent9cdf11676ecd753fd86c3d8057c2375174ef0a70 (diff)
Fix PlayAnim X/Y flipping
This functionality was missed in recent GLSL drawing update fd3e44492e7606a741a6d2c42b31687598c7d09a.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_playanim.c7
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);