Merge pull request #120106 from TokageItLab/null-anim-btr

Add null check for `root_animation_node` in AnimationTree
This commit is contained in:
Thaddeus Crews committed 2026-06-09 06:40:04 -05:00
commit dc59c8b250
1 file changed
+5
+5
View File
@@ -660,6 +660,11 @@ Ref<AnimationRootNode> AnimationTree::get_root_animation_node() const {
bool AnimationTree::_blend_pre_process(double p_delta, int p_track_count, const AHashMap<NodePath, int> &p_track_map) {
_update_properties(); // If properties need updating, update them.
if (root_animation_node.is_null()) {
process_state = AnimationNode::ProcessState();
return false; // Abort after _update_properties() and init process_state.
}
if (validation_dirty) {
_update_connections();
validation_dirty = false;