Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gauthier Quesnel
irritator
Commits
664e3db5
Commit
664e3db5
authored
Nov 13, 2020
by
Gauthier Quesnel
Browse files
gui: avoid second dispatch of dynamics in init
parent
5d530af0
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/gui/node-editor.cpp
View file @
664e3db5
...
...
@@ -2253,7 +2253,7 @@ add_popup_menuitem(editor& ed, dynamics_type type, model_id* new_model)
const
auto
mdl_id
=
dyn
.
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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment