mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-09 21:32:37 +02:00
Backported from Godot4: Fix animation player crashing when caching disabled tracks - MinusKube
a73882305c
This commit is contained in:
parent
47358bfaab
commit
88da0c8d4f
@ -255,11 +255,12 @@ void AnimationPlayer::_ensure_node_caches(AnimationData *p_anim, Node *p_root_ov
|
|||||||
setup_pass++;
|
setup_pass++;
|
||||||
|
|
||||||
for (int i = 0; i < a->get_track_count(); i++) {
|
for (int i = 0; i < a->get_track_count(); i++) {
|
||||||
|
p_anim->node_cache.write[i] = NULL;
|
||||||
|
|
||||||
if (!a->track_is_enabled(i)) {
|
if (!a->track_is_enabled(i)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
p_anim->node_cache.write[i] = NULL;
|
|
||||||
RES resource;
|
RES resource;
|
||||||
Vector<StringName> leftover_path;
|
Vector<StringName> leftover_path;
|
||||||
Node *child = parent->get_node_and_resource(a->track_get_path(i), resource, leftover_path);
|
Node *child = parent->get_node_and_resource(a->track_get_path(i), resource, leftover_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user