Skip to content

Commit 0874498

Browse files
authored
setting initial scale was missing from Graphic._set_world_object (fastplotlib#993)
1 parent 0d4c5b9 commit 0874498

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

fastplotlib/graphics/_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ def _set_world_object(self, wo: pygfx.WorldObject):
318318
if not all(wo.world.rotation == self.rotation):
319319
self.rotation = self.rotation
320320

321+
# set scale if it's not (1, 1, 1)
322+
if not all(wo.world.scale == self.scale):
323+
self.scale = self.scale
324+
321325
@property
322326
def tooltip_format(self) -> Callable[[dict], str] | None:
323327
"""

0 commit comments

Comments
 (0)