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

@ -145,7 +145,7 @@ class BuildVolume(SceneNode):
skirt_size = 0.0
container_stack = Application.getInstance().getActiveContainerStack()
container_stack = Application.getInstance().getGlobalContainerStack()
if container_stack:
skirt_size = self._getSkirtSize(container_stack)
@ -160,7 +160,7 @@ class BuildVolume(SceneNode):
Application.getInstance().getController().getScene()._maximum_bounds = scale_to_max_bounds
def _onActiveContainerStackChanged(self):
self._active_container_stack = Application.getInstance().getActiveContainerStack()
self._active_container_stack = Application.getInstance().getGlobalContainerStack()
if self._active_container_stack:
self._width = self._active_container_stack.getValue("machine_width")
@ -176,7 +176,7 @@ class BuildVolume(SceneNode):
def _onSettingValueChanged(self, setting_key):
if setting_key == "print_sequence":
if Application.getInstance().getActiveContainerStack().getValue("print_sequence") == "one_at_a_time":
if Application.getInstance().getGlobalContainerStack().getValue("print_sequence") == "one_at_a_time":
self._height = self._active_container_stack.getValue("gantry_height")
else:
self._height = self._active_container_stack.getValue("machine_depth")