Simplified dispose function of DisposableComponents

This commit is contained in:
Simon Lübeß
2021-12-30 16:52:13 +01:00
parent b3ab30e72a
commit b555cc37d1
7 changed files with 26 additions and 29 deletions
@@ -28,12 +28,10 @@ namespace GlitchyEngine.World
public SkeletonPose Pose => _pose;
public static void DisposeComponent(void* component)
public void Dispose()
{
Self* animationComponent = (Self*)component;
animationComponent._animationClip?.ReleaseRef();
delete animationComponent._pose;
_animationClip?.ReleaseRef();
delete _pose;
}
}
}