Renamed active containerstack to global containerstac

Cura-1278
This commit is contained in:
Jaime van Kessel 2016-05-10 10:34:02 +02:00
parent c0c24f1f70
commit dbd2c911ce
2 changed files with 5 additions and 5 deletions

View file

@ -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: