Merge pull request #62337 from reduz/respect-disabled-animation-tracks
Respect disabled animation tracks
This commit is contained in:
commit
64918e4ae9
@ -283,6 +283,9 @@ 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++) {
|
||||||
|
if (!a->track_is_enabled(i)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
p_anim->node_cache.write[i] = nullptr;
|
p_anim->node_cache.write[i] = nullptr;
|
||||||
Ref<Resource> resource;
|
Ref<Resource> resource;
|
||||||
Vector<StringName> leftover_path;
|
Vector<StringName> leftover_path;
|
||||||
|
@ -965,6 +965,10 @@ void AnimationTree::_process_graph(double p_delta) {
|
|||||||
#endif // _3D_DISABLED
|
#endif // _3D_DISABLED
|
||||||
|
|
||||||
for (int i = 0; i < a->get_track_count(); i++) {
|
for (int i = 0; i < a->get_track_count(); i++) {
|
||||||
|
if (!a->track_is_enabled(i)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
NodePath path = a->track_get_path(i);
|
NodePath path = a->track_get_path(i);
|
||||||
|
|
||||||
ERR_CONTINUE(!track_cache.has(path));
|
ERR_CONTINUE(!track_cache.has(path));
|
||||||
|
Loading…
Reference in New Issue
Block a user