Implement ScaleTool Scale to Max

This commit is contained in:
Arjen Hiemstra 2015-04-29 18:22:32 +02:00
parent 28ac931629
commit 64370093b2

View file

@ -394,6 +394,9 @@ class PrinterApplication(QtApplication):
self._volume.rebuild()
if self.getController().getTool('ScaleTool'):
self.getController().getTool('ScaleTool').setMaximumBounds(self._volume.getBoundingBox())
offset = machine.getSettingValueByKey('machine_platform_offset')
if offset:
self._platform.setPosition(Vector(offset[0], offset[1], offset[2]))