mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:35:58 +08:00
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.
This commit is contained in:
parent
9be02fb31f
commit
747ade2382
@ -104,10 +104,8 @@ class BuildVolume(SceneNode):
|
|||||||
root = Application.getInstance().getController().getScene().getRoot()
|
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])
|
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:
|
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
|
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):
|
def setWidth(self, width):
|
||||||
if width: self._width = width
|
if width: self._width = width
|
||||||
|
Loading…
x
Reference in New Issue
Block a user