mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Prevent a crash when calling AnimationMixer::restore when an invalid reference
(cherry picked from commit 937411e152
)
This commit is contained in:
parent
cff941f138
commit
2786f0e43e
1 changed files with 1 additions and 0 deletions
|
@ -1985,6 +1985,7 @@ void AnimationMixer::reset() {
|
|||
}
|
||||
|
||||
void AnimationMixer::restore(const Ref<AnimatedValuesBackup> &p_backup) {
|
||||
ERR_FAIL_COND(p_backup.is_null());
|
||||
track_cache = p_backup->get_data();
|
||||
_blend_apply();
|
||||
track_cache = HashMap<NodePath, AnimationMixer::TrackCache *>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue