mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-12 04:11:49 +08:00
Merge branch 'master' of https://github.com/Ultimaker/Cura
This commit is contained in:
commit
49ab5d0457
@ -127,7 +127,6 @@ class CuraEngineBackend(Backend):
|
|||||||
def close(self):
|
def close(self):
|
||||||
# Terminate CuraEngine if it is still running at this point
|
# Terminate CuraEngine if it is still running at this point
|
||||||
self._terminate()
|
self._terminate()
|
||||||
super().close()
|
|
||||||
|
|
||||||
## Get the command that is used to call the engine.
|
## Get the command that is used to call the engine.
|
||||||
# This is useful for debugging and used to actually start the engine.
|
# This is useful for debugging and used to actually start the engine.
|
||||||
@ -195,6 +194,7 @@ class CuraEngineBackend(Backend):
|
|||||||
self.slicingCancelled.emit()
|
self.slicingCancelled.emit()
|
||||||
self.processingProgress.emit(0)
|
self.processingProgress.emit(0)
|
||||||
Logger.log("d", "Attempting to kill the engine process")
|
Logger.log("d", "Attempting to kill the engine process")
|
||||||
|
if self._enabled:
|
||||||
self._createSocket() # Ensure that we have a fresh socket.
|
self._createSocket() # Ensure that we have a fresh socket.
|
||||||
if Application.getInstance().getCommandLineOption("external-backend", False):
|
if Application.getInstance().getCommandLineOption("external-backend", False):
|
||||||
return
|
return
|
||||||
@ -374,8 +374,9 @@ class CuraEngineBackend(Backend):
|
|||||||
#
|
#
|
||||||
# \param tool The tool that the user is using.
|
# \param tool The tool that the user is using.
|
||||||
def _onToolOperationStarted(self, tool):
|
def _onToolOperationStarted(self, tool):
|
||||||
self._terminate() # Do not continue slicing once a tool has started
|
|
||||||
self._enabled = False # Do not reslice when a tool is doing it's 'thing'
|
self._enabled = False # Do not reslice when a tool is doing it's 'thing'
|
||||||
|
self._terminate() # Do not continue slicing once a tool has started
|
||||||
|
|
||||||
|
|
||||||
## Called when the user stops using some tool.
|
## Called when the user stops using some tool.
|
||||||
#
|
#
|
||||||
@ -384,6 +385,7 @@ class CuraEngineBackend(Backend):
|
|||||||
# \param tool The tool that the user was using.
|
# \param tool The tool that the user was using.
|
||||||
def _onToolOperationStopped(self, tool):
|
def _onToolOperationStopped(self, tool):
|
||||||
self._enabled = True # Tool stop, start listening for changes again.
|
self._enabled = True # Tool stop, start listening for changes again.
|
||||||
|
self._terminate()
|
||||||
|
|
||||||
## Called when the user changes the active view mode.
|
## Called when the user changes the active view mode.
|
||||||
def _onActiveViewChanged(self):
|
def _onActiveViewChanged(self):
|
||||||
@ -407,7 +409,6 @@ class CuraEngineBackend(Backend):
|
|||||||
if not self._restart and self._process:
|
if not self._restart and self._process:
|
||||||
Logger.log("d", "Backend quit with return code %s. Resetting process and socket.", self._process.wait())
|
Logger.log("d", "Backend quit with return code %s. Resetting process and socket.", self._process.wait())
|
||||||
self._process = None
|
self._process = None
|
||||||
self._createSocket()
|
|
||||||
|
|
||||||
## Called when the global container stack changes
|
## Called when the global container stack changes
|
||||||
def _onGlobalStackChanged(self):
|
def _onGlobalStackChanged(self):
|
||||||
|
@ -94,10 +94,10 @@ ScrollView
|
|||||||
{
|
{
|
||||||
target: provider
|
target: provider
|
||||||
property: "containerStackId"
|
property: "containerStackId"
|
||||||
when: model.settable_per_extruder || model.settable_per_mesh || (inheritStackProvider.properties.global_inherits_stack != null && inheritStackProvider.properties.global_inherits_stack >= 0);
|
when: model.settable_per_extruder || (inheritStackProvider.properties.global_inherits_stack != null && inheritStackProvider.properties.global_inherits_stack >= 0);
|
||||||
value:
|
value:
|
||||||
{
|
{
|
||||||
if(!model.settable_per_extruder && !model.settable_per_mesh)
|
if(!model.settable_per_extruder)
|
||||||
{
|
{
|
||||||
//Not settable per extruder, so we must pick global.
|
//Not settable per extruder, so we must pick global.
|
||||||
return Cura.MachineManager.activeMachineId;
|
return Cura.MachineManager.activeMachineId;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user