Commit d6e4a08c authored by Anish's avatar Anish

Prevents a Null Reference in deleting Animations.

A null Animation would cause a crash by accessing restricted memory.
Solved by checking if the animation track is null before using the

Fixes: #26829
parent 91d3ea0d
......@@ -3424,6 +3424,10 @@ void AnimationTrackEditor::_animation_update() {
bool same = true;
if (animation.is_null()) {
if (track_edits.size() == animation->get_track_count()) {
//check tracks are the same
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment