mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Fix: Extreme small model was not automatically scaled.
This commit is contained in:
parent
f6095e9ad0
commit
1afe2668f7
1 changed files with 10 additions and 2 deletions
|
@ -1547,8 +1547,16 @@ class CuraApplication(QtApplication):
|
|||
for original_node in nodes:
|
||||
|
||||
# Create a CuraSceneNode just if the original node is not that type
|
||||
node = original_node if isinstance(original_node, CuraSceneNode) else CuraSceneNode()
|
||||
node.setMeshData(original_node.getMeshData())
|
||||
if isinstance(original_node, CuraSceneNode):
|
||||
node = original_node
|
||||
else:
|
||||
node = CuraSceneNode()
|
||||
node.setMeshData(original_node.getMeshData())
|
||||
|
||||
#Setting meshdata does not apply scaling.
|
||||
if(original_node.getScale() != Vector(1.0, 1.0, 1.0)):
|
||||
node.scale(original_node.getScale())
|
||||
|
||||
|
||||
node.setSelectable(True)
|
||||
node.setName(os.path.basename(filename))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue