mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Changes to CuraEngineBackend plugin. The plugin does not work correctly, will visit later
This commit is contained in:
parent
2edd4da861
commit
ad33effbbe
4 changed files with 28 additions and 12 deletions
|
@ -6,7 +6,14 @@ class TransferMeshesCommand(Command):
|
|||
super(TransferMeshesCommand,self).__init__()
|
||||
|
||||
def send(self, meshes):
|
||||
self._socket.sendCommand(0x00200000,len(meshes)) # Tell other side that n meshes are going to be sent.
|
||||
command = TransferMeshCommand(self._socket)
|
||||
for mesh in meshes:
|
||||
command.send(mesh)
|
||||
|
||||
|
||||
def recieve(self, num_meshes):
|
||||
meshes = []
|
||||
command = TransferMeshCommand(self._socket)
|
||||
for x in range(0,num_meshes):
|
||||
meshes.append(command.recieve())
|
||||
return meshes
|
Loading…
Add table
Add a link
Reference in a new issue