From 152d6384bf2287e6af8f23120c93e4b8727e095d Mon Sep 17 00:00:00 2001 From: Kushal Kolar Date: Tue, 17 Feb 2026 17:19:15 -0500 Subject: [PATCH] setting initial scale was missing from `Graphic._set_world_object` --- fastplotlib/graphics/_base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fastplotlib/graphics/_base.py b/fastplotlib/graphics/_base.py index 47673cbc0..5279cf306 100644 --- a/fastplotlib/graphics/_base.py +++ b/fastplotlib/graphics/_base.py @@ -318,6 +318,10 @@ def _set_world_object(self, wo: pygfx.WorldObject): if not all(wo.world.rotation == self.rotation): self.rotation = self.rotation + # set scale if it's not (1, 1, 1) + if not all(wo.world.scale == self.scale): + self.scale = self.scale + @property def tooltip_format(self) -> Callable[[dict], str] | None: """