mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 07:25:58 +08:00
Update more things to the changed SceneNode API
This commit is contained in:
parent
c53bed8450
commit
115c2b006e
@ -138,7 +138,7 @@ class CuraEngineBackend(Backend):
|
||||
for object in objects:
|
||||
center += object.getPosition()
|
||||
|
||||
meshData = object.getMeshData().getTransformed(object.getGlobalTransformation())
|
||||
meshData = object.getMeshData().getTransformed(object.getWorldTransformation())
|
||||
|
||||
obj = msg.objects.add()
|
||||
obj.id = id(object)
|
||||
|
@ -45,7 +45,7 @@ class ProcessSlicedObjectListJob(Job):
|
||||
points[:,2] -= self._center.z
|
||||
|
||||
points = numpy.pad(points, ((0,0), (0,1)), 'constant', constant_values=(0.0, 1.0))
|
||||
inverse = node.getGlobalTransformation().getInverse().getData()
|
||||
inverse = node.getWorldTransformation().getInverse().getData()
|
||||
points = points.dot(inverse)
|
||||
points = points[:,0:3]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user