Merge pull request #36562 from AndreaCatania/anim_crash_fix

Fixed editor crash when the animation player has no root assigned.
This commit is contained in:
Rémi Verschelde
2020-02-26 19:07:05 +01:00
committed by GitHub

View File

@@ -2480,6 +2480,9 @@ void AnimationTrackEdit::_path_entered(const String &p_text) {
bool AnimationTrackEdit::_is_value_key_valid(const Variant &p_key_value, Variant::Type &r_valid_type) const {
if (root == nullptr)
return false;
RES res;
Vector<StringName> leftover_path;
Node *node = root->get_node_and_resource(animation->track_get_path(track), res, leftover_path);