Skip to content

Commit

Permalink
fix(core): Fixed min-max ranges for averaged dilation not correctly c…
Browse files Browse the repository at this point in the history
…opying.
  • Loading branch information
regzo2 committed Nov 28, 2024
1 parent 14e87eb commit 37e2c1b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions VRCFaceTracking.Core/Params/Data/UnifiedData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ public UnifiedSingleEyeData Combined()
}
public void CopyPropertiesOf(UnifiedEyeData data)
{
this.Left.Gaze = data.Left.Gaze;
this.Left.Openness = data.Left.Openness;
this.Left.PupilDiameter_MM = data.Left.PupilDiameter_MM;
this.Right.Gaze = data.Right.Gaze;
this.Right.Openness = data.Right.Openness;
data.Combined();

this.Left = data.Left;
this.Right = data.Right;
this.Right.PupilDiameter_MM = data.Right.PupilDiameter_MM;

This comment has been minimized.

Copy link
@kusomaigo

kusomaigo Nov 28, 2024

Contributor

This should have also been deleted right?

this._maxDilation = data._maxDilation;
this._minDilation = data._minDilation;
this._rightDiameter = data._rightDiameter;
this._leftDiameter = data._leftDiameter;
}
}

Expand Down Expand Up @@ -107,9 +108,9 @@ public class UnifiedTrackingData

public void CopyPropertiesOf(UnifiedTrackingData data)
{
this.Eye.CopyPropertiesOf(data.Eye);
Eye.CopyPropertiesOf(data.Eye);
for (int i = 0; i < Shapes.Length; i++)
this.Shapes[i].Weight = data.Shapes[i].Weight;
Shapes[i].Weight = data.Shapes[i].Weight;
}
}
}

0 comments on commit 37e2c1b

Please sign in to comment.