mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
Simplified dispose function of DisposableComponents
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user