Skip to content

Commit 3106905

Browse files
aWilson41jcfr
authored andcommitted
BUG: Fix issue on Oculus that throws error constantly when used
1 parent bb214d6 commit 3106905

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

VirtualReality/MRML/vtkVirtualRealityViewInteractorStyle.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,10 @@ bool vtkVirtualRealityViewInteractorStyle::DelegateInteractionEventToDisplayable
323323
{
324324
interactionContextName = "RightController"; //TODO: Store these elsewhere
325325
}
326+
else if (ed->GetDevice() == vtkEventDataDevice::HeadMountedDisplay)
327+
{
328+
interactionContextName = "HeadMountedDisplay";
329+
}
326330
else
327331
{
328332
vtkErrorMacro("DelegateInteractionEventToDisplayableManagers: Unrecognized device");

0 commit comments

Comments
 (0)