mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Renamed active containerstack to global containerstac
Cura-1278
This commit is contained in:
parent
c0c24f1f70
commit
dbd2c911ce
2 changed files with 5 additions and 5 deletions
|
@ -34,10 +34,10 @@ class SolidView(View):
|
|||
self._disabled_shader.setUniformValue("u_diffuseColor", [0.68, 0.68, 0.68, 1.0])
|
||||
self._disabled_shader.setUniformValue("u_overhangAngle", math.cos(math.radians(0)))
|
||||
|
||||
if Application.getInstance().getActiveContainerStack():
|
||||
if Application.getInstance().getGlobalContainerStack():
|
||||
|
||||
if Preferences.getInstance().getValue("view/show_overhang"):
|
||||
angle = Application.getInstance().getActiveContainerStack().getValue("support_angle")
|
||||
angle = Application.getInstance().getGlobalContainerStack().getValue("support_angle")
|
||||
if angle is not None:
|
||||
self._enabled_shader.setUniformValue("u_overhangAngle", math.cos(math.radians(90 - angle)))
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue