chiark / gitweb /
Fix bug that causes objects not to be re-arranged when switching to one-at-a-time...
authordaid <daid303@gmail.com>
Sun, 16 Feb 2014 10:50:54 +0000 (11:50 +0100)
committerdaid <daid303@gmail.com>
Sun, 16 Feb 2014 10:50:54 +0000 (11:50 +0100)
Cura/gui/mainWindow.py
Cura/util/objectScene.py

index 97e9c6e315152f34046832c4d08b2b2cc2aaa128..e105056a770ce6d99d0cb31ec9b192111d6ca293 100644 (file)
@@ -326,6 +326,7 @@ class mainWindow(wx.Frame):
                if self.oneAtATime.IsChecked() and profile.getMachineSettingFloat('extruder_head_size_height') < 1:
                        wx.MessageBox(_('For "One at a time" printing, you need to have entered the correct head size and gantry height in the machine settings'), _('One at a time warning'), wx.OK | wx.ICON_WARNING)
                self.scene.updateProfileToControls()
+               self.scene._scene.pushFree()
                self.scene.sceneUpdated()
 
        def OnPreferences(self, e):
index 1a3437c894421d69835c865aea38beec74066365..8496406752fcb380da43cc2d2c3a2e6eba4950ff 100644 (file)
@@ -204,7 +204,11 @@ class Scene(object):
                obj1.setPosition((obj1.getPosition() + obj2.getPosition()) / 2)
                self.pushFree(obj1)
 
-       def pushFree(self, staticObj):
+       def pushFree(self, staticObj = None):
+               if staticObj is None:
+                       for obj in self._objectList:
+                               self.pushFree(obj)
+                       return
                if not self.checkPlatform(staticObj):
                        return
                pushList = []