Merge pull request #49558 from timothyqiu/invalid-ref
This commit is contained in:
commit
95932ce4f2
1 changed files with 2 additions and 0 deletions
|
@ -160,6 +160,8 @@ Ref<SkeletonModification2D> SkeletonModificationStack2D::get_modification(int p_
|
|||
}
|
||||
|
||||
void SkeletonModificationStack2D::add_modification(Ref<SkeletonModification2D> p_mod) {
|
||||
ERR_FAIL_COND(!p_mod.is_valid());
|
||||
|
||||
p_mod->_setup_modification(this);
|
||||
modifications.push_back(p_mod);
|
||||
|
||||
|
|
Loading…
Reference in a new issue