Dispose SpringBone runtime when destroyed before Vrm10Runtime is created

This commit is contained in:
Neorin
2026-05-15 21:15:27 +09:00
parent 3b99078d26
commit 8aa541e427

View File

@@ -231,6 +231,15 @@ namespace UniVRM10
{
m_runtime.Dispose();
m_runtime = null;
m_springBoneRuntime = null;
return;
}
// m_runtime 代入前に Destroy された場合のフォールバック
if (m_springBoneRuntime != null)
{
m_springBoneRuntime.Dispose();
m_springBoneRuntime = null;
}
}