Commit: ef602a1ff94561f20279ec825363359f74851010
Author: Jeroen Bakker
Date: Wed Dec 15 08:31:23 2021 +0100
Branches: temp-gpu-image-engine
https://developer.blender.org/rBef602a1ff94561f20279ec825363359f74851010
Sanitized node editor backdrop matrix.
===================================================================
M source/blender/draw/engines/image/image_space_node.hh
===================================================================
diff --git a/source/blender/draw/engines/image/image_space_node.hh
b/source/blender/draw/engines/image/image_space_node.hh
index 4e76cbdc6da..1ce8fdeb0f3 100644
--- a/source/blender/draw/engines/image/image_space_node.hh
+++ b/source/blender/draw/engines/image/image_space_node.hh
@@ -124,9 +124,9 @@ class SpaceNodeAccessor : public AbstractSpaceAccessor {
mul_v2_v2fl(display_resolution, image_resolution, snode->zoom);
const float scale_x = display_resolution[0] / region->winx;
const float scale_y = display_resolution[1] / region->winy;
- const float translate_x = (region->winx * 0.5f - display_resolution[0] *
0.5f + snode->xof) /
+ const float translate_x = ((region->winx - display_resolution[0]) * 0.5f +
snode->xof) /
region->winx;
- const float translate_y = (region->winy * 0.5f - display_resolution[1] *
0.5f + snode->yof) /
+ const float translate_y = ((region->winy - display_resolution[1]) * 0.5f +
snode->yof) /
region->winy;
r_uv_to_texture[0][0] = scale_x;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs