mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 05:56:00 +08:00
Fix code style and typo
CURA-4846
This commit is contained in:
parent
2fad098f0b
commit
ce0e3f89b7
@ -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…
x
Reference in New Issue
Block a user