Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0874498

Browse filesBrowse files
authored
setting initial scale was missing from Graphic._set_world_object (#993)
1 parent 0d4c5b9 commit 0874498
Copy full SHA for 0874498

1 file changed

+4Lines changed: 4 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎fastplotlib/graphics/_base.py‎

Copy file name to clipboardExpand all lines: fastplotlib/graphics/_base.py
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.