mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 12:47:49 -06:00
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:
parent
6affb80189
commit
edc6955162
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue