From 71ada85966ae53d776e7fa36ab78692c18b5ee70 Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Mon, 30 Oct 2023 15:41:54 +0100 Subject: [PATCH] Use camercase for `isometricSnapshot` def CURA-10561 --- cura/Snapshot.py | 2 +- plugins/MakerbotWriter/MakerbotWriter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Snapshot.py b/cura/Snapshot.py index 4fd8f57b94..0aeacbc1bb 100644 --- a/cura/Snapshot.py +++ b/cura/Snapshot.py @@ -37,7 +37,7 @@ class Snapshot: return min_x, max_x, min_y, max_y @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.""" root = Application.getInstance().getController().getScene().getRoot() diff --git a/plugins/MakerbotWriter/MakerbotWriter.py b/plugins/MakerbotWriter/MakerbotWriter.py index ecb0006690..e0b5b0eb2b 100644 --- a/plugins/MakerbotWriter/MakerbotWriter.py +++ b/plugins/MakerbotWriter/MakerbotWriter.py @@ -86,7 +86,7 @@ class MakerbotWriter(MeshWriter): Logger.warning("Can't create snapshot when renderer not initialized.") return try: - snapshot = Snapshot.isometric_snapshot(width, height) + snapshot = Snapshot.isometricSnapshot(width, height) except: Logger.logException("w", "Failed to create snapshot image") return