mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Get scale factor from global stack
This is the one that's actually used by CuraEngine. If I get it per-object, the material profile overrides it. Contributes to issue CURA-7118.
This commit is contained in:
parent
4e283b5a78
commit
a6707217c7
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||
influences the collision area.
|
||||
"""
|
||||
|
||||
scale_factor = self._getSettingProperty("material_shrinkage_percentage") / 100.0
|
||||
scale_factor = self._global_stack.getProperty("material_shrinkage_percentage", "value") / 100.0
|
||||
center = self.getNode().getBoundingBox().center
|
||||
result = convex_hull.scale(scale_factor, [center.x, center.z]) # Yes, use Z instead of Y. Mixed conventions there with how the OpenGL coordinates are transmitted.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue