mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 14:15:56 +08:00
Apply transformation again
CURA-382
This commit is contained in:
parent
47870f43ef
commit
8ac7558677
@ -157,4 +157,10 @@ class ThreeMFReader(MeshReader):
|
|||||||
except:
|
except:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
global_container_stack = UM.Application.getInstance().getGlobalContainerStack()
|
||||||
|
|
||||||
|
if global_container_stack:
|
||||||
|
translation = Vector(x=-global_container_stack.getProperty("machine_width", "value") / 2, y=0,
|
||||||
|
z=global_container_stack.getProperty("machine_depth", "value") / 2)
|
||||||
|
result.translate(translation, SceneNode.TransformSpace.World)
|
||||||
return result
|
return result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user