mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:38:58 +08:00
CURA-4667 Fix simulation view render race. Change the place where the
layer data is reset.
This commit is contained in:
parent
033a4615eb
commit
c3d9c1b3d8
@ -61,7 +61,9 @@ class ProcessSlicedLayersJob(Job):
|
||||
|
||||
def run(self):
|
||||
start_time = time()
|
||||
if Application.getInstance().getController().getActiveView().getPluginId() == "SimulationView":
|
||||
view = Application.getInstance().getController().getActiveView()
|
||||
if view.getPluginId() == "SimulationView":
|
||||
view.resetLayerData()
|
||||
self._progress_message.show()
|
||||
Job.yieldThread()
|
||||
if self._abort_requested:
|
||||
@ -208,10 +210,6 @@ class ProcessSlicedLayersJob(Job):
|
||||
self._progress_message.hide()
|
||||
return
|
||||
|
||||
view = Application.getInstance().getController().getActiveView()
|
||||
if view.getPluginId() == "SimulationView":
|
||||
view.resetLayerData()
|
||||
|
||||
# Add LayerDataDecorator to scene node to indicate that the node has layer data
|
||||
decorator = LayerDataDecorator.LayerDataDecorator()
|
||||
decorator.setLayerData(layer_mesh)
|
||||
|
Loading…
x
Reference in New Issue
Block a user