Browse Source

Remove unused extra argument

c.lamboo 1 year ago
parent
commit
5134540751
1 changed files with 2 additions and 3 deletions
  1. 2 3
      cura/Snapshot.py

+ 2 - 3
cura/Snapshot.py

@@ -37,11 +37,10 @@ class Snapshot:
         return min_x, max_x, min_y, max_y
 
     @staticmethod
-    def isometric_snapshot(width: int = 300, height: int = 300, *, root: Optional[SceneNode] = None) -> Optional[
-        QImage]:
+    def isometric_snapshot(width: int = 300, height: int = 300) -> Optional[QImage]:
         """Create an isometric snapshot of the scene."""
 
-        root = Application.getInstance().getController().getScene().getRoot() if root is None else root
+        root = Application.getInstance().getController().getScene().getRoot()
 
         # the direction the camera is looking at to create the isometric view
         iso_view_dir = Vector(-1, -1, -1).normalized()