mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 02:19:06 +08:00
Force scene change event upon file load through commandline parameters
Fixes Ultimaker/Cura#409
This commit is contained in:
parent
7c9b190bee
commit
b770979be5
@ -529,6 +529,8 @@ class CuraApplication(QtApplication):
|
|||||||
op = AddSceneNodeOperation(node, self.getController().getScene().getRoot())
|
op = AddSceneNodeOperation(node, self.getController().getScene().getRoot())
|
||||||
op.push()
|
op.push()
|
||||||
|
|
||||||
|
self.getController().getScene().sceneChanged.emit(node) #Force scene change.
|
||||||
|
|
||||||
def _onJobFinished(self, job):
|
def _onJobFinished(self, job):
|
||||||
if type(job) is not ReadMeshJob or not job.getResult():
|
if type(job) is not ReadMeshJob or not job.getResult():
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user