You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
AnimationTreePlayer (set_active, reset, constructor): seek all animations to start.
This commit is contained in:
@@ -1604,6 +1604,7 @@ void AnimationTreePlayer::set_active(bool p_active) {
|
||||
|
||||
active = p_active;
|
||||
processing = active;
|
||||
reset_request = p_active;
|
||||
_set_process(processing, true);
|
||||
}
|
||||
|
||||
@@ -1621,7 +1622,7 @@ AnimationTreePlayer::ConnectError AnimationTreePlayer::get_last_error() const {
|
||||
void AnimationTreePlayer::reset() {
|
||||
|
||||
|
||||
reset_request=false;
|
||||
reset_request=true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1863,7 +1864,7 @@ AnimationTreePlayer::AnimationTreePlayer() {
|
||||
processing = false;
|
||||
active=false;
|
||||
dirty_caches=true;
|
||||
reset_request=false;
|
||||
reset_request=true;
|
||||
last_error=CONNECT_INCOMPLETE;
|
||||
base_path=String("..");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user