Skip to content

Commit 294cfac

Browse files
committed
fix(modules): Ensure only one module is used for eye and face tracking data to fix clashing
1 parent e021f35 commit 294cfac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

VRCFaceTracking.Core/Library/UnifiedLibManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ public void Initialize()
210210
ExpressionStatus = replyInitPacket.expressionSuccess ? ModuleState.Active : ModuleState.Uninitialized;
211211

212212
AvailableSandboxModules[moduleIndex].ModuleInformation.Active = true;
213-
AvailableSandboxModules[moduleIndex].ModuleInformation.UsingEye = replyInitPacket.eyeSuccess;
214-
AvailableSandboxModules[moduleIndex].ModuleInformation.UsingExpression = replyInitPacket.expressionSuccess;
213+
AvailableSandboxModules[moduleIndex].ModuleInformation.UsingEye = !AvailableSandboxModules.Any(m => m.ModuleInformation.UsingEye) && replyInitPacket.eyeSuccess;
214+
AvailableSandboxModules[moduleIndex].ModuleInformation.UsingExpression = !AvailableSandboxModules.Any(m => m.ModuleInformation.UsingExpression) && replyInitPacket.expressionSuccess;
215215
AvailableSandboxModules[moduleIndex].ModuleInformation.StaticImages = replyInitPacket.IconDataStreams;
216216
EnsureModuleThreadStartedSandboxed(AvailableSandboxModules[moduleIndex]);
217217

0 commit comments

Comments
 (0)