From d4a5952cc1695278cb77593f667679656bc2ba12 Mon Sep 17 00:00:00 2001 From: Yordan Iliev Date: Wed, 23 Oct 2024 21:16:23 +0300 Subject: [PATCH] fix: Properly scale the image when the scale prop is changed --- src/core/Image.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Image.tsx b/src/core/Image.tsx index 00ec534f4..3f546e69f 100644 --- a/src/core/Image.tsx +++ b/src/core/Image.tsx @@ -147,7 +147,7 @@ const ImageBase: ForwardRefComponent, THREE.Mesh> = /* @ planeBounds[1] * ref.current.geometry.parameters.height ) } - }, []) + }, [planeBounds[0], planeBounds[1]]) return (