Commit 664e3db5 authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

gui: avoid second dispatch of dynamics in init

parent 5d530af0
......@@ -2253,7 +2253,7 @@ add_popup_menuitem(editor& ed, dynamics_type type, model_id* new_model)
const auto mdl_id =;
auto* mdl = ed.sim.models.try_to_get(mdl_id);
ed.sim.make_initialize(*mdl, ed.simulation_current);
ed.sim.make_initialize(*mdl, dyn, ed.simulation_current);
*new_model = mdl_id;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment