Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
e0218ed9
Commit
e0218ed9
authored
Apr 23, 2021
by
TheNumbat
Browse files
limit particle scale to 0.01
parent
ff03db83
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gui/manager.cpp
View file @
e0218ed9
...
...
@@ -231,7 +231,7 @@ void Manager::particles_edit_gui(Undo& undo, Scene_Particles& particles) {
activate
();
ImGui
::
SliderFloat
(
"Angle"
,
&
opt
.
angle
,
0.0
f
,
180.0
f
,
"%.2f"
);
activate
();
ImGui
::
DragFloat
(
"Scale"
,
&
opt
.
scale
,
0.01
f
,
0.0
f
,
std
::
numeric_limits
<
float
>::
max
(),
"%.2f"
);
ImGui
::
DragFloat
(
"Scale"
,
&
opt
.
scale
,
0.01
f
,
0.0
1
f
,
std
::
numeric_limits
<
float
>::
max
(),
"%.2f"
);
activate
();
ImGui
::
DragFloat
(
"Lifetime"
,
&
opt
.
lifetime
,
0.01
f
,
0.0
f
,
std
::
numeric_limits
<
float
>::
max
(),
"%.2f"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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