You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Use doubles for time in many other places
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user