mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Update more things to the changed SceneNode API
This commit is contained in:
parent
c53bed8450
commit
115c2b006e
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ class CuraEngineBackend(Backend):
|
||||||
for object in objects:
|
for object in objects:
|
||||||
center += object.getPosition()
|
center += object.getPosition()
|
||||||
|
|
||||||
meshData = object.getMeshData().getTransformed(object.getGlobalTransformation())
|
meshData = object.getMeshData().getTransformed(object.getWorldTransformation())
|
||||||
|
|
||||||
obj = msg.objects.add()
|
obj = msg.objects.add()
|
||||||
obj.id = id(object)
|
obj.id = id(object)
|
||||||
|
|
|
@ -45,7 +45,7 @@ class ProcessSlicedObjectListJob(Job):
|
||||||
points[:,2] -= self._center.z
|
points[:,2] -= self._center.z
|
||||||
|
|
||||||
points = numpy.pad(points, ((0,0), (0,1)), 'constant', constant_values=(0.0, 1.0))
|
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.dot(inverse)
|
||||||
points = points[:,0:3]
|
points = points[:,0:3]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue