mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 22:25:53 +08:00
Use globalContainer stack instead of activeInstance
CURA-1278
This commit is contained in:
parent
93227c0b56
commit
170df747b3
@ -101,8 +101,6 @@ class CuraApplication(QtApplication):
|
||||
self._camera_animation = None
|
||||
self._cura_actions = None
|
||||
|
||||
#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)
|
||||
|
||||
|
@ -63,6 +63,6 @@ class PrintInformation(QObject):
|
||||
self.currentPrintTimeChanged.emit()
|
||||
|
||||
# Material amount is sent as an amount of mm^3, so calculate length from that
|
||||
r = Application.getInstance().getMachineManager().getWorkingProfile().getSettingValue("material_diameter") / 2
|
||||
r = Application.getInstance().getGlobalContainerStack().getValue("material_diameter") / 2
|
||||
self._material_amount = round((amount / (math.pi * r ** 2)) / 1000, 2)
|
||||
self.materialAmountChanged.emit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user