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
0863038c
Commit
0863038c
authored
Aug 17, 2020
by
Gauthier Quesnel
Browse files
gui: fix number of dynamics available
parent
a562327c
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/gui/node-editor.cpp
View file @
0863038c
...
...
@@ -2607,7 +2607,7 @@ editor::show_editor() noexcept
model_id
new_model
=
undefined
<
model_id
>
();
ImVec2
click_pos
=
ImGui
::
GetMousePosOnOpeningCurrentPopup
();
for
(
size_t
i
=
0
,
e
=
std
::
size
(
dynamics_type_
names
);
i
!=
e
;
++
i
)
{
for
(
size_t
i
=
0
,
e
=
dynamics_type_
size
(
);
i
!=
e
;
++
i
)
{
auto
ret
=
add_popup_menuitem
(
*
this
,
static_cast
<
dynamics_type
>
(
i
),
&
new_model
);
if
(
is_bad
(
ret
))
...
...
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