More time parameters change type float to double
This commit is contained in:
parent
9df9dc77a3
commit
1c0b163df5
5 changed files with 13 additions and 13 deletions
|
|
@ -854,10 +854,10 @@ void AnimationNodeStateMachineEditor::_state_machine_pos_draw() {
|
|||
}
|
||||
to.y = from.y;
|
||||
|
||||
float len = MAX(0.0001, current_length);
|
||||
double len = MAX(0.0001, current_length);
|
||||
|
||||
float pos = CLAMP(play_pos, 0, len);
|
||||
float c = pos / len;
|
||||
double pos = CLAMP(play_pos, 0, len);
|
||||
double c = pos / len;
|
||||
Color fg = get_theme_color(SNAME("font_color"), SNAME("Label"));
|
||||
Color bg = fg;
|
||||
bg.a *= 0.3;
|
||||
|
|
|
|||
|
|
@ -159,11 +159,11 @@ class AnimationNodeStateMachineEditor : public AnimationTreeNodeEditorPlugin {
|
|||
StringName last_blend_from_node;
|
||||
StringName last_current_node;
|
||||
Vector<StringName> last_travel_path;
|
||||
float last_play_pos;
|
||||
float play_pos;
|
||||
float current_length;
|
||||
double last_play_pos;
|
||||
double play_pos;
|
||||
double current_length;
|
||||
|
||||
float error_time;
|
||||
double error_time;
|
||||
String error_text;
|
||||
|
||||
EditorFileDialog *open_file;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue