mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-26 04:11:07 -07:00
Force scene change event upon file load through commandline parameters
Fixes Ultimaker/Cura#409
This commit is contained in:
parent
7c9b190bee
commit
b770979be5
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue