mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Renames to from activeStack to global stack
CURA-1278
This commit is contained in:
parent
dbd2c911ce
commit
04f1e8d27c
2 changed files with 6 additions and 9 deletions
|
@ -37,10 +37,8 @@ class BuildVolume(SceneNode):
|
|||
|
||||
self.setCalculateBoundingBox(False)
|
||||
|
||||
self._active_profile = None
|
||||
self._active_instance = None
|
||||
Application.getInstance().activeContainerStackChanged.connect(self._onActiveContainerStackChanged)
|
||||
self._onActiveContainerStackChanged()
|
||||
Application.getInstance().globalContainerStackChanged.connect(self._onGlobalContainerStackChanged)
|
||||
self._onGlobalContainerStackChanged()
|
||||
|
||||
def setWidth(self, width):
|
||||
if width: self._width = width
|
||||
|
@ -159,7 +157,7 @@ class BuildVolume(SceneNode):
|
|||
|
||||
Application.getInstance().getController().getScene()._maximum_bounds = scale_to_max_bounds
|
||||
|
||||
def _onActiveContainerStackChanged(self):
|
||||
def _onGlobalContainerStackChanged(self):
|
||||
self._active_container_stack = Application.getInstance().getGlobalContainerStack()
|
||||
|
||||
if self._active_container_stack:
|
||||
|
|
|
@ -101,7 +101,7 @@ class CuraApplication(QtApplication):
|
|||
self._camera_animation = None
|
||||
self._cura_actions = None
|
||||
|
||||
#self.getMachineManager().activeMachineInstanceChanged.connect(self._onActiveMachineChanged)
|
||||
#self.getMachineManager().activeMachineInstanceChanged.connect(self._onGlobalContainerStackChanged)
|
||||
#self.getMachineManager().addMachineRequested.connect(self._onAddMachineRequested)
|
||||
self.getController().getScene().sceneChanged.connect(self.updatePlatformActivity)
|
||||
self.getController().toolOperationStopped.connect(self._onToolOperationStopped)
|
||||
|
@ -508,10 +508,9 @@ class CuraApplication(QtApplication):
|
|||
|
||||
@pyqtSlot(str, result = "QVariant")
|
||||
def getSettingValue(self, key):
|
||||
if not self.getMachineManager().getWorkingProfile():
|
||||
if not self._global_container_stack:
|
||||
return None
|
||||
return self.getMachineManager().getWorkingProfile().getSettingValue(key)
|
||||
#return self.getActiveMachine().getSettingValueByKey(key)
|
||||
return self._global_container_stack.getValue(key)
|
||||
|
||||
## Change setting by key value pair
|
||||
@pyqtSlot(str, "QVariant")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue