You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Fix reset
This commit is contained in:
@@ -464,6 +464,7 @@ bool Tween::reset(Variant p_object, String p_key) {
|
||||
|
||||
data.elapsed = 0;
|
||||
data.finish = false;
|
||||
if(data.delay == 0)
|
||||
_apply_tween_value(data, data.initial_val);
|
||||
}
|
||||
}
|
||||
@@ -477,6 +478,7 @@ bool Tween::reset_all() {
|
||||
InterpolateData& data = E->get();
|
||||
data.elapsed = 0;
|
||||
data.finish = false;
|
||||
if(data.delay == 0)
|
||||
_apply_tween_value(data, data.initial_val);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user