Hopsan / hopsan

Hopsan is a free multi-domain system simulation tool developed at the division of Fluid and mechatronic systems at Linköping university.
Apache License 2.0
157 stars 43 forks source link

Editing a model during simulation is allowed #2188

Closed robbr48 closed 2 weeks ago

robbr48 commented 10 months ago

Describe the bug If simulating without progress bar, it is possible to e.g. remove connectors or components from a model during the simulation. Removing a connector appears to have no effect, but remove a component clearly affects the results. Using undo to re-add whatever was deleted crashes the progarm.

To Reproduce

  1. Start a simulation without progress bar
  2. Delete a connector - nothing changes
  3. Delete a component - results will be affected
  4. Press Ctrl-Z - crash

Expected behavior It should not be allowed to edit models during simulation.