Browse Source

Merge pull request #54245 from manueldun/nullParamAddMod

Rémi Verschelde 3 years ago
parent
commit
0409644afd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/resources/skeleton_modification_stack_3d.cpp

+ 1 - 0
scene/resources/skeleton_modification_stack_3d.cpp

@@ -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);
 }