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.
This commit is contained in:
Ghostkeeper 2016-09-27 17:14:41 +02:00
parent 6affb80189
commit edc6955162
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -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: