From db710c76522466acd4da3e9ed1d6bfe7941ab3a7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 4 May 2026 13:14:53 +0000 Subject: [PATCH 1/2] Initial plan From 26dfd55cb14b5eaf871215a43623ea390a17e9b5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 4 May 2026 13:17:11 +0000 Subject: [PATCH 2/2] Fix uninitialized member state in IKSolverVR Agent-Logs-Url: https://github.com/BSQ-VRM/VRM-Qavatars/sessions/70de94b6-d9a8-45b2-9a06-3e59663c427c Co-authored-by: Futuremappermydud <54294576+Futuremappermydud@users.noreply.github.com> --- include/customTypes/FinalIK/IKSolverVR.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/customTypes/FinalIK/IKSolverVR.hpp b/include/customTypes/FinalIK/IKSolverVR.hpp index 3ebe492..e1c770a 100644 --- a/include/customTypes/FinalIK/IKSolverVR.hpp +++ b/include/customTypes/FinalIK/IKSolverVR.hpp @@ -32,15 +32,15 @@ namespace VRMQavatars::FinalIK { void SetIKPositionWeight(float weight); void Update(); - bool initiated; - bool firstInitiation; + bool initiated = false; + bool firstInitiation = true; Sombrero::FastVector3 IKPosition; float IKPositionWeight = 1.0f; std::function OnPostInitiate; std::function OnPostUpdate; std::function OnPreInitiate; std::function OnPreUpdate; - UnityEngine::Transform* root; + UnityEngine::Transform* root = nullptr; // IKSolverVR @@ -76,11 +76,11 @@ namespace VRMQavatars::FinalIK { std::vector defaultLocalPositions = std::vector(21); Sombrero::FastVector3 rootVelocity = Sombrero::FastVector3::zero(); Sombrero::FastVector3 bodyOffset = Sombrero::FastVector3::zero(); - int supportLegIndex = 0; + int supportLegIndex = -1; int lastLOD = 0; int LOD = 0; bool plantFeet = true; - VirtualBone* rootBone; + VirtualBone* rootBone = nullptr; Spine* spine = new Spine(); Arm* leftArm = new Arm(); Arm* rightArm = new Arm();