From d74887c7f9759d8ec1c3d8c218cb390b7a3e0a3a Mon Sep 17 00:00:00 2001 From: Dexer <73297572+DexerBR@users.noreply.github.com> Date: Sat, 10 Jun 2023 06:34:23 -0300 Subject: [PATCH] limit stencil to inner instructions (#8276) --- kivy/data/style.kv | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kivy/data/style.kv b/kivy/data/style.kv index 3d20b9206..366795bc5 100644 --- a/kivy/data/style.kv +++ b/kivy/data/style.kv @@ -118,20 +118,18 @@ PopMatrix : - canvas.before: + canvas: + Color: + rgba: self.color StencilPush Rectangle: pos: self.pos size: self.size StencilUse - canvas: - Color: - rgba: self.color Rectangle: texture: self.texture size: self.norm_image_size pos: self.center_x - self.norm_image_size[0] / 2., self.center_y - self.norm_image_size[1] / 2. - canvas.after: StencilUnUse Rectangle: pos: self.pos