From 733447a2dd16ea4b036a34543e5ba40dc2d61ef0 Mon Sep 17 00:00:00 2001
From: "p.kuiper"
Date: Fri, 1 Apr 2022 13:00:41 +0200
Subject: Removed the settings: "material_shrinkage_percentage" and update code
that was using this parameter.
material_shrinkage_percentage_xy and material_shrinkage_percentage_z cannot depend on material_shrinkage_percentage otherwise their resolve function will not execute properly.
I noticed that the shrinkage factors do not get the correct value if a wrong nozzle is chosen for a material. However, in that case the slicer will also not slice, so in practice this is not an issue
Relates to PP-77
---
cura/Scene/ConvexHullDecorator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'cura/Scene')
diff --git a/cura/Scene/ConvexHullDecorator.py b/cura/Scene/ConvexHullDecorator.py
index 36697b7c57..4545a49aa0 100644
--- a/cura/Scene/ConvexHullDecorator.py
+++ b/cura/Scene/ConvexHullDecorator.py
@@ -383,7 +383,7 @@ class ConvexHullDecorator(SceneNodeDecorator):
# Shrinkage compensation.
if not self._global_stack: # Should never happen.
return convex_hull
- scale_factor = self._global_stack.getProperty("material_shrinkage_percentage", "value") / 100.0
+ scale_factor = self._global_stack.getProperty("material_shrinkage_percentage_xy", "value") / 100.0
result = convex_hull
if scale_factor != 1.0 and not self.getNode().callDecoration("isGroup"):
center = None
--
cgit v1.2.3