mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-30 14:53:09 -05:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,7 @@ namespace UniGLTF.SpringBoneJobs
|
||||
// x・z要素を、tailDirの正弦とjointに設定されたangleの正弦の比を用いてスケールする
|
||||
var horizontalLengthSquared = 1.0f - tailDir.y * tailDir.y;
|
||||
|
||||
if (horizontalLengthSquared == 0.0)
|
||||
if (horizontalLengthSquared <= 1e-8f)
|
||||
{
|
||||
// tailDirがy軸負方向の場合、z軸正方向側を選択する
|
||||
tailDir.x = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user