Merge pull request #54245 from manueldun/nullParamAddMod

This commit is contained in:
Rémi Verschelde 2021-10-26 08:20:40 +02:00 committed by GitHub
commit 0409644afd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,6 +125,7 @@ Ref<SkeletonModification3D> SkeletonModificationStack3D::get_modification(int p_
}
void SkeletonModificationStack3D::add_modification(Ref<SkeletonModification3D> p_mod) {
ERR_FAIL_NULL(p_mod);
p_mod->_setup_modification(this);
modifications.push_back(p_mod);
}