mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-04 00:01:19 -07:00
Fix code style and typo
CURA-4846
This commit is contained in:
parent
2fad098f0b
commit
ce0e3f89b7
1 changed files with 2 additions and 2 deletions
|
|
@ -1288,7 +1288,7 @@ class CuraApplication(QtApplication):
|
||||||
has_merged_nodes = False
|
has_merged_nodes = False
|
||||||
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
||||||
if not isinstance(node, CuraSceneNode) or not node.getMeshData() :
|
if not isinstance(node, CuraSceneNode) or not node.getMeshData() :
|
||||||
if node.getName() == 'MergedMesh':
|
if node.getName() == "MergedMesh":
|
||||||
has_merged_nodes = True
|
has_merged_nodes = True
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
@ -1380,7 +1380,7 @@ class CuraApplication(QtApplication):
|
||||||
|
|
||||||
# Use the previously found center of the group bounding box as the new location of the group
|
# Use the previously found center of the group bounding box as the new location of the group
|
||||||
group_node.setPosition(group_node.getBoundingBox().center)
|
group_node.setPosition(group_node.getBoundingBox().center)
|
||||||
group_node.setName("MergedMesh") # add a specific name to destinguis this node
|
group_node.setName("MergedMesh") # add a specific name to distinguish this node
|
||||||
|
|
||||||
|
|
||||||
## Updates origin position of all merged meshes
|
## Updates origin position of all merged meshes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue