mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 03:04:23 +08:00
Fixed pluginRegistry bug
This commit is contained in:
parent
11ac8e85e8
commit
2edd4da861
@ -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)
|
@ -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())
|
@ -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())
|
Loading…
x
Reference in New Issue
Block a user