From 49537b64f729d05a1e4d37a2700872c724ec4072 Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Tue, 28 Nov 2017 09:39:57 +0100 Subject: [PATCH] CURA-4482 Fix error in SolidView when the support angle stack doesn't exist. This error was sent twice through the CrashHandler and it is in Metabase. --- plugins/SolidView/SolidView.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/SolidView/SolidView.py b/plugins/SolidView/SolidView.py index bc1b08cc5e..90f402b78f 100644 --- a/plugins/SolidView/SolidView.py +++ b/plugins/SolidView/SolidView.py @@ -49,9 +49,9 @@ class SolidView(View): global_container_stack = Application.getInstance().getGlobalContainerStack() if global_container_stack: support_extruder_nr = global_container_stack.getProperty("support_extruder_nr", "value") - support_angle_stack = ExtruderManager.getInstance().getExtruderStack(support_extruder_nr) + support_angle_stack = Application.getInstance().getExtruderManager().getExtruderStack(support_extruder_nr) - if Preferences.getInstance().getValue("view/show_overhang"): + if support_angle_stack is not None and Preferences.getInstance().getValue("view/show_overhang"): angle = support_angle_stack.getProperty("support_angle", "value") # Make sure the overhang angle is valid before passing it to the shader # Note: if the overhang angle is set to its default value, it does not need to get validated (validationState = None)