diff --git a/ProjectObsidian/ProtoFlux/Users/Status/IsUserEyeTracking.cs b/ProjectObsidian/ProtoFlux/Users/Status/IsUserEyeTracking.cs index f468577..27f9d31 100644 --- a/ProjectObsidian/ProtoFlux/Users/Status/IsUserEyeTracking.cs +++ b/ProjectObsidian/ProtoFlux/Users/Status/IsUserEyeTracking.cs @@ -1,6 +1,5 @@ using FrooxEngine; using FrooxEngine.ProtoFlux; -using FrooxEngine.ProtoFlux.Runtimes.Execution.Nodes; using ProtoFlux.Core; using ProtoFlux.Runtimes.Execution; @@ -11,7 +10,7 @@ namespace ProtoFlux.Runtimes.Execution.Nodes.Obsidian.Users.Status public class IsUserEyeTracking : ValueFunctionNode { public readonly ObjectInput User; - public readonly ObjectInput Side; + public readonly ValueInput Side; protected override bool Compute(FrooxEngineContext context) { @@ -22,7 +21,14 @@ protected override bool Compute(FrooxEngineContext context) if (eyeTrackingStreamManager != null) { EyeSide side = Side.Evaluate(context); - return eyeTrackingStreamManager.GetIsTracking(side); + if (side != EyeSide.Combined) + { + return eyeTrackingStreamManager.GetIsTracking(side); + } + else + { + return eyeTrackingStreamManager.GetIsTracking(EyeSide.Left) && eyeTrackingStreamManager.GetIsTracking(EyeSide.Right); + } } } return false;