diff --git a/engine/rend/src/animations/animationSystem.zig b/engine/rend/src/animations/animationSystem.zig index bd1309b..2707e1a 100644 --- a/engine/rend/src/animations/animationSystem.zig +++ b/engine/rend/src/animations/animationSystem.zig @@ -273,7 +273,13 @@ pub const Animator = struct { self.setAnimationByName(name) catch unreachable; } + pub fn deinitECS(self: *@This(), handle: core.SetHandle) void { + _ = handle; + self.deinit(); + } + pub fn deinit(self: *@This()) void { + core.engine_logs("destroying animator!!"); self.sjc.destroy(); self.removeResolver(); self.finals.deinit(allocator); @@ -456,6 +462,7 @@ pub const AnimationSystem = struct { for (Animator.BaseContainer.list.items) |animator| { animator.deinit(); } + self.slots.deinit(); core.undefineComponent(Animator); self.arena.deinit();