From 747ade2382859478609451908c888e7e2da2fca1 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 15 Nov 2016 11:15:40 +0100 Subject: [PATCH] Remove now-useless variable I just realised that there were two if statements below each other with the same condition. Contributes to issue CURA-2625. --- cura/BuildVolume.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py index 29dc4fd9bc..76e6c53810 100644 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -104,10 +104,8 @@ class BuildVolume(SceneNode): root = Application.getInstance().getController().getScene().getRoot() new_number_of_objects = len([node for node in BreadthFirstIterator(root) if node.getMeshData() and type(node) is SceneNode]) if new_number_of_objects != self._number_of_objects: - recalculate = new_number_of_objects != self._number_of_objects self._number_of_objects = new_number_of_objects - if recalculate: - self._onSettingPropertyChanged("print_sequence", "value") # Create fake event, so right settings are triggered. + self._onSettingPropertyChanged("print_sequence", "value") # Create fake event, so right settings are triggered. def setWidth(self, width): if width: self._width = width