Skip to content

Commit

Permalink
Beep boop binary go brr
Browse files Browse the repository at this point in the history
  • Loading branch information
benaclejames committed Apr 25, 2023
1 parent 15ab81f commit 9ee71a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions VRCFaceTracking.Core/OSC/OSCParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public bool Relevant
get => _relevant;
protected set
{
if (value) Enqueue();

// If we're irrelevant or we don't have a getValueFunc, we don't need to do anything
if (_relevant == value) return;

Expand All @@ -34,10 +36,7 @@ protected set
if (_getValueFunc == null) return;

if (value)
{
UnifiedTracking.OnUnifiedDataUpdated += Process;
Enqueue(); // Enqueue a new message to ensure initial values are what we expect
}
else
UnifiedTracking.OnUnifiedDataUpdated -= Process;
}
Expand Down

0 comments on commit 9ee71a3

Please sign in to comment.