Use doubles for time in many other places

This commit is contained in:
Aaron Franke 2021-02-01 21:16:37 -05:00
parent 78d33a6e24
commit 84f720966c
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
47 changed files with 291 additions and 288 deletions

View file

@ -60,7 +60,7 @@ void GPUParticles2DEditorPlugin::_file_selected(const String &p_file) {
void GPUParticles2DEditorPlugin::_menu_callback(int p_idx) {
switch (p_idx) {
case MENU_GENERATE_VISIBILITY_RECT: {
float gen_time = particles->get_lifetime();
double gen_time = particles->get_lifetime();
if (gen_time < 1.0) {
generate_seconds->set_value(1.0);
} else {
@ -100,7 +100,7 @@ void GPUParticles2DEditorPlugin::_menu_callback(int p_idx) {
}
void GPUParticles2DEditorPlugin::_generate_visibility_rect() {
float time = generate_seconds->get_value();
double time = generate_seconds->get_value();
float running = 0.0;