Update more things to the changed SceneNode API

This commit is contained in:
Arjen Hiemstra 2015-04-08 17:22:30 +02:00
parent c53bed8450
commit 115c2b006e
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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]