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
This commit is contained in:
p.kuiper 2022-04-01 13:00:41 +02:00
parent 4bb79654d4
commit 733447a2dd
4 changed files with 24 additions and 44 deletions

View file

@ -139,4 +139,4 @@ class ModelChecker(QObject, Extension):
global_container_stack = Application.getInstance().getGlobalContainerStack()
if global_container_stack is None:
return 100
return global_container_stack.getProperty("material_shrinkage_percentage", "value")
return max(global_container_stack.getProperty("material_shrinkage_percentage_xy", "value"), global_container_stack.getProperty("material_shrinkage_percentage_z", "value"))