From e3d482514ba1041b4573a7180f72428dfba8bad7 Mon Sep 17 00:00:00 2001 From: Casper Lamboo Date: Mon, 31 Jul 2023 17:09:27 +0200 Subject: [PATCH] Use camelCase for python function definition CURA-10719 Co-authored-by: Jaime van Kessel --- plugins/3MFWriter/ThreeMFWriter.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/3MFWriter/ThreeMFWriter.py b/plugins/3MFWriter/ThreeMFWriter.py index 2bfb152217..a3636a98b9 100644 --- a/plugins/3MFWriter/ThreeMFWriter.py +++ b/plugins/3MFWriter/ThreeMFWriter.py @@ -279,7 +279,7 @@ class ThreeMFWriter(MeshWriter): plugin_ids = set() - def add_plugin_ids_in_stack(stack: CuraContainerStack): + def addPluginIdsInStack(stack: CuraContainerStack) -> None: for key in stack.getAllKeys(): value = str(stack.getProperty(key, "value")) for plugin_id, _version, _value in backend_plugin_enum_value_regex.findall(value): @@ -287,16 +287,16 @@ class ThreeMFWriter(MeshWriter): # go through all stacks and find all the plugin id contained in the project global_stack = Application.getInstance().getMachineManager().activeMachine - add_plugin_ids_in_stack(global_stack) + addPluginIdsInStack(global_stack) for container in global_stack.getContainers(): - add_plugin_ids_in_stack(container) + addPluginIdsInStack(container) for extruder_stack in global_stack.extruderList: - add_plugin_ids_in_stack(extruder_stack) + addPluginIdsInStack(extruder_stack) for container in extruder_stack.getContainers(): - add_plugin_ids_in_stack(container) + addPluginIdsInStack(container) metadata = {}