Skip to content

Commit

Permalink
Filterに1以上や0以下を入れると吹っ飛んでいくバグを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
gpsnmeajp committed Jan 26, 2020
1 parent fa627cc commit 52af1d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions EVMC4U/CameraReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ void Update()
//カメラがセットされているならば
if (VMCControlledCamera != null && VMCControlledCamera.transform != null && fov != 0)
{
CameraFilter = Mathf.Clamp(CameraFilter, 0f, 1f);

//カメラ移動フィルタ
if (CameraPositionFilterEnable)
{
Expand Down
2 changes: 2 additions & 0 deletions EVMC4U/ExternalReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,8 @@ private void BoneSynchronize(HumanBodyBones bone, Vector3 pos, Quaternion rot)
//1本のボーンの同期
private void BoneSynchronizeSingle(Transform t, ref HumanBodyBones bone, ref Vector3 pos, ref Quaternion rot, bool posFilter, bool rotFilter)
{
BoneFilter = Mathf.Clamp(BoneFilter, 0f, 1f);

//ボーン位置同期が有効か
if (BonePositionSynchronize)
{
Expand Down

0 comments on commit 52af1d7

Please sign in to comment.