File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Sources/Rendering/WebXR/RenderWindowHelper Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,15 @@ function vtkWebXRRenderWindowHelper(publicAPI, model) {
173173 const gl = model . renderWindow . get3DContext ( ) ;
174174 gl . bindFramebuffer ( gl . FRAMEBUFFER , null ) ;
175175
176+ // Remove controllers ray
177+ const ren = model . renderWindow . getRenderable ( ) . getRenderers ( ) [ 0 ] ;
178+ model . xrSession . inputSources . forEach ( ( inputSource ) => {
179+ if ( model . inputSourceToRay [ inputSource . handedness ] ) {
180+ ren . removeActor ( model . inputSourceToRay [ inputSource . handedness ] . actor ) ;
181+ model . inputSourceToRay [ inputSource . handedness ] . visible = false ;
182+ }
183+ } ) ;
184+
176185 await model . xrSession . end ( ) . catch ( ( error ) => {
177186 if ( ! ( error instanceof DOMException ) ) {
178187 throw error ;
You can’t perform that action at this time.
0 commit comments