From 6e022a382d47d677d7d5a1a4c891529d4682505b Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Fri, 28 May 2021 08:44:59 +0100 Subject: [PATCH] Fix canvas rect bound calculation It turns out the calculation of the bounding rect for canvas items has a nasty bug. When a transform is applied (especially in a custom draw), in the renderer this extra matrix is applied to all later commands in the canvas item. However in the calculation of the bound, the transform is only applied to the first command following the transform. This PR fixes this inconsistency. --- servers/visual/rasterizer.h | 1 - 1 file changed, 1 deletion(-) diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h index bf417046261..2c5827f8267 100644 --- a/servers/visual/rasterizer.h +++ b/servers/visual/rasterizer.h @@ -1043,7 +1043,6 @@ public: if (found_xform) { r = xf.xform(r); - found_xform = false; } if (first) {