Skip to content

Commit 4b790ca

Browse files
Dehydrate canvas before loading model
1 parent 2068310 commit 4b790ca

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

webapp/redux/middleware/middleware.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,7 @@ const createSimulateBackendCall = async (cmd, payload, consoleMessage, spinnerTy
156156
GEPPETTO.trigger(GEPPETTO.Events.Show_spinner, GEPPETTO.Resources.PARSING_MODEL);
157157

158158
dehydrateCanvas()
159-
if ('CanvasContainer' in window) {
160-
CanvasContainer.engine.reset()
161-
Object.values(CanvasContainer.engine.meshes).forEach(mesh => {
162-
CanvasContainer.engine.removeObject(mesh)
163-
})
164-
}
165159

166-
167160
GEPPETTO.Manager.loadModel(response);
168161
GEPPETTO.CommandController.log('Instantiation / Simulation completed.');
169162

0 commit comments

Comments
 (0)