You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
This commit is contained in:
@@ -72,7 +72,7 @@ void ParticlesEditorPlugin::_notification(int p_what) {
|
||||
|
||||
bool ParticlesEditorPlugin::need_show_lifetime_dialog(SpinBox *p_seconds) {
|
||||
// Add one second to the default generation lifetime, since the progress is updated every second.
|
||||
p_seconds->set_value(MAX(1.0, trunc(edited_node->get("lifetime").operator double()) + 1.0));
|
||||
p_seconds->set_value(MAX(1.0, std::trunc(edited_node->get("lifetime").operator double()) + 1.0));
|
||||
|
||||
if (p_seconds->get_value() >= 11.0 + CMP_EPSILON) {
|
||||
// Only pop up the time dialog if the particle's lifetime is long enough to warrant shortening it.
|
||||
|
||||
Reference in New Issue
Block a user