Fixed problem with label editor.

This commit is contained in:
Michael Mainguy 2023-08-17 10:20:39 -05:00
parent ceaf6c4fb5
commit c383b57cb4
3 changed files with 2049 additions and 2033 deletions

2046
index.html

File diff suppressed because it is too large Load Diff

2032
public/newRelic.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -64,7 +64,7 @@ export class InputTextView {
textInput.value = this.text; textInput.value = this.text;
if (this.xr?.baseExperience?.sessionManager?.inXRSession) { if (this.xr?.baseExperience?.sessionManager?.inXRSession) {
this.xr.input.controllers.forEach((controller) => { this.xr.input.controllers.forEach((controller) => {
controller.grip.setEnabled(false); controller.motionController.rootMesh.setEnabled(false);
controller.pointer.setEnabled(false); controller.pointer.setEnabled(false);
}); });
@ -82,7 +82,7 @@ export class InputTextView {
this.onTextObservable.notifyObservers({text: textInput.value}); this.onTextObservable.notifyObservers({text: textInput.value});
if (this.xr?.baseExperience?.sessionManager?.inXRSession) { if (this.xr?.baseExperience?.sessionManager?.inXRSession) {
this.xr.input.controllers.forEach((controller) => { this.xr.input.controllers.forEach((controller) => {
controller.grip.setEnabled(true); controller.motionController.rootMesh.setEnabled(true);
controller.pointer.setEnabled(true); controller.pointer.setEnabled(true);
}); });
} }