From dc80d50eb5bbd73ebd7258159a717adc5f657f7a Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 27 Sep 2016 16:58:14 +0200 Subject: [PATCH] Remove unused value for extra_margin Since the else clause below now raises an exception and all its if clauses define extra_margin, this initial value is now unused. Contributes to issue CURA-2407. --- cura/ConvexHullDecorator.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cura/ConvexHullDecorator.py b/cura/ConvexHullDecorator.py index 492acc4eaf..dde6deb650 100644 --- a/cura/ConvexHullDecorator.py +++ b/cura/ConvexHullDecorator.py @@ -231,7 +231,6 @@ class ConvexHullDecorator(SceneNodeDecorator): # Compensate for raft/skirt/brim # Add extra margin depending on adhesion type adhesion_type = self._global_stack.getProperty("adhesion_type", "value") - extra_margin = 0 if adhesion_type == "raft": extra_margin = max(0, self._getSettingProperty("raft_margin", "value"))