mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Use camercase for isometricSnapshot
def
CURA-10561
This commit is contained in:
parent
2660933d6e
commit
71ada85966
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ class Snapshot:
|
||||||
return min_x, max_x, min_y, max_y
|
return min_x, max_x, min_y, max_y
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def isometric_snapshot(width: int = 300, height: int = 300) -> Optional[QImage]:
|
def isometricSnapshot(width: int = 300, height: int = 300) -> Optional[QImage]:
|
||||||
"""Create an isometric snapshot of the scene."""
|
"""Create an isometric snapshot of the scene."""
|
||||||
|
|
||||||
root = Application.getInstance().getController().getScene().getRoot()
|
root = Application.getInstance().getController().getScene().getRoot()
|
||||||
|
|
|
@ -86,7 +86,7 @@ class MakerbotWriter(MeshWriter):
|
||||||
Logger.warning("Can't create snapshot when renderer not initialized.")
|
Logger.warning("Can't create snapshot when renderer not initialized.")
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
snapshot = Snapshot.isometric_snapshot(width, height)
|
snapshot = Snapshot.isometricSnapshot(width, height)
|
||||||
except:
|
except:
|
||||||
Logger.logException("w", "Failed to create snapshot image")
|
Logger.logException("w", "Failed to create snapshot image")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue