Fixed pluginRegistry bug

This commit is contained in:
Jaime van Kessel 2014-11-18 11:35:07 +01:00
parent 11ac8e85e8
commit 2edd4da861
3 changed files with 8 additions and 4 deletions

View File

@ -6,4 +6,7 @@ class TransferMeshCommand(Command):
super(TransferMeshCommand,self).__init__()
def send(self, mesh_data):
vertices = mesh_data.getVerticesList()
vertices = mesh_data.getVertices()
command = TransferVertCommand(self._socket)
for vertex in vertices:
command.send(vertex)

View File

@ -4,5 +4,5 @@ class TransferVertCommand(Command):
def __init__(self):
super(TransferVertCommand,self).__init__()
def send(self):
self._socket.sendData(self._id, self._data)
def send(self, vertex):
self._socket.sendData(self._id, vertex.toString())

View File

@ -5,6 +5,7 @@ def getMetaData():
return { "name": "CuraBackend", "type": "Backend" }
def register(app):
engine = CuraEngineBackend()
app.setBackend(engine)
engine.addCommand(TransferMeshCommand())
#engine.addCommand(TransferMeshCommand())