Merge pull request #26901 from KidRigger/anim_crash
Prevents a Null Reference in deleting Animations.
This commit is contained in:
@ -3424,6 +3424,10 @@ void AnimationTrackEditor::_animation_update() {
|
|||||||
|
|
||||||
bool same = true;
|
bool same = true;
|
||||||
|
|
||||||
|
if (animation.is_null()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (track_edits.size() == animation->get_track_count()) {
|
if (track_edits.size() == animation->get_track_count()) {
|
||||||
//check tracks are the same
|
//check tracks are the same
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user