Don't send JSON file to back-end any more

They are no longer using it.

The back-end now just takes all settings that come in via setting messages. It doesn't need to set its defaults any more because all settings are set at the beginning. Only when slicing via command line does it need a JSON file.

Contributes to issue CURA-4410.
This commit is contained in:
Ghostkeeper 2018-08-06 17:22:04 +02:00
parent 85f80f85b8
commit 6c6e05bf06
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -178,8 +178,7 @@ class CuraEngineBackend(QObject, Backend):
# This is useful for debugging and used to actually start the engine.
# \return list of commands and args / parameters.
def getEngineCommand(self) -> List[str]:
json_path = Resources.getPath(Resources.DefinitionContainers, "fdmprinter.def.json")
return [self._application.getPreferences().getValue("backend/location"), "connect", "127.0.0.1:{0}".format(self._port), "-j", json_path, ""]
return [self._application.getPreferences().getValue("backend/location"), "connect", "127.0.0.1:{0}".format(self._port), ""]
## Emitted when we get a message containing print duration and material amount.
# This also implies the slicing has finished.