mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Updating _ucp_model to None everytime a write is done
CURA-11403
This commit is contained in:
parent
62aff0be12
commit
909a4156f3
1 changed files with 6 additions and 1 deletions
|
@ -33,7 +33,7 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
|
||||||
if self._ucp_model != model:
|
if self._ucp_model != model:
|
||||||
self._ucp_model = model
|
self._ucp_model = model
|
||||||
|
|
||||||
def write(self, stream, nodes, mode=WorkspaceWriter.OutputMode.BinaryMode):
|
def _write(self, stream, nodes, mode=WorkspaceWriter.OutputMode.BinaryMode):
|
||||||
application = Application.getInstance()
|
application = Application.getInstance()
|
||||||
machine_manager = application.getMachineManager()
|
machine_manager = application.getMachineManager()
|
||||||
|
|
||||||
|
@ -125,6 +125,11 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def write(self, stream, nodes, mode=WorkspaceWriter.OutputMode.BinaryMode):
|
||||||
|
success = self._write(stream, nodes, mode=WorkspaceWriter.OutputMode.BinaryMode)
|
||||||
|
self._ucp_model = None
|
||||||
|
return success
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _writePluginMetadataToArchive(archive: zipfile.ZipFile) -> None:
|
def _writePluginMetadataToArchive(archive: zipfile.ZipFile) -> None:
|
||||||
file_name_template = "%s/plugin_metadata.json"
|
file_name_template = "%s/plugin_metadata.json"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue