Page MenuHomeFeedback Tracker

CharacterAnimationComponent.SetIKTarget leak to memory
Assigned, NormalPublic

Description

Every execution of

CharacterAnimationComponent.SetIKTarget(string bindingName, string boneName, vector position, vector rotationRad);

Instantiate new PintInfo and AnimationIKTargetInfo and doesn't clean up old instances.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10
Category
General
Steps To Reproduce

Add:

modded class SCR_BaseGameMode
{
	override void EOnFrame(IEntity owner, float timeSlice)
	{
		super.EOnFrame(owner, timeSlice);
		
		SCR_ChimeraCharacter character = SCR_ChimeraCharacter.Cast(SCR_PlayerController.GetLocalMainEntity());
		if (character)
			character.GetAnimationComponent().SetIKTarget("", "", "0 0 0", "0 0 0");
	}
}

To your addon, and run MP_test world.

Additional Information

Maybe I can at least workoround it somehow?
I know that fixing it take time, but I spend two weeks working on mod and this think just pop out from nowhere (˚ ˃̣̣̥⌓˂̣̣̥ ) ‧º

Event Timeline

JiraF created this task.Aug 14 2024, 2:52 PM
Geez changed the task status from New to Assigned.Aug 15 2024, 11:20 AM
Sesk added a subscriber: Sesk.Aug 15 2024, 9:18 PM