From edc6955162f85c555a0a8ea936c803e33cf3bc16 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 27 Sep 2016 17:14:41 +0200 Subject: [PATCH] Use per-mesh settings if it has them For platform adhesion offset and that sort of thing, we now also listen to per mesh settings. It isn't yet re-computed when changing per-mesh settings though. I'm going to look how to do that next. Contributes to issue CURA-2407. --- cura/ConvexHullDecorator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura/ConvexHullDecorator.py b/cura/ConvexHullDecorator.py index e0325103e0..97cd24d04d 100644 --- a/cura/ConvexHullDecorator.py +++ b/cura/ConvexHullDecorator.py @@ -296,6 +296,10 @@ class ConvexHullDecorator(SceneNodeDecorator): ## Private convenience function to get a setting from the correct extruder (as defined by limit_to_extruder property). def _getSettingProperty(self, setting_key, property="value"): + per_mesh_stack = self._node.callDecoration("getStack") + if per_mesh_stack: + return per_mesh_stack.getProperty(setting_key, property) + multi_extrusion = self._global_stack.getProperty("machine_extruder_count", "value") > 1 if not multi_extrusion: