mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +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__()
|
super(TransferMeshCommand,self).__init__()
|
||||||
|
|
||||||
def send(self, mesh_data):
|
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):
|
def __init__(self):
|
||||||
super(TransferVertCommand,self).__init__()
|
super(TransferVertCommand,self).__init__()
|
||||||
|
|
||||||
def send(self):
|
def send(self, vertex):
|
||||||
self._socket.sendData(self._id, self._data)
|
self._socket.sendData(self._id, vertex.toString())
|
@ -5,6 +5,7 @@ def getMetaData():
|
|||||||
return { "name": "CuraBackend", "type": "Backend" }
|
return { "name": "CuraBackend", "type": "Backend" }
|
||||||
|
|
||||||
def register(app):
|
def register(app):
|
||||||
|
|
||||||
engine = CuraEngineBackend()
|
engine = CuraEngineBackend()
|
||||||
app.setBackend(engine)
|
app.setBackend(engine)
|
||||||
engine.addCommand(TransferMeshCommand())
|
#engine.addCommand(TransferMeshCommand())
|
Loading…
x
Reference in New Issue
Block a user