diff --git a/src/hub.js b/src/hub.js index 1cab0c2372f797379ec7d1b6705dc4d5989ccfb9..f57b614c42578d0d942148b26d8da4cb917198b9 100644 --- a/src/hub.js +++ b/src/hub.js @@ -4,9 +4,8 @@ import uuid from "uuid/v4"; import queryString from "query-string"; import { Socket } from "phoenix"; -import { patchWebGLRenderingContext, monkeyPatchPannerNode } from "./utils/webgl"; +import { patchWebGLRenderingContext } from "./utils/webgl"; patchWebGLRenderingContext(); -monkeyPatchPannerNode(); import "aframe-xr"; import "./vendor/GLTFLoader"; diff --git a/src/network-schemas.js b/src/network-schemas.js index 2e24083d2c445871f64aed16382a0d84a7260895..822951bedb782de1ba401ae20c00232f47b61412 100644 --- a/src/network-schemas.js +++ b/src/network-schemas.js @@ -9,16 +9,16 @@ function registerNetworkSchemas() { }, "scale", "player-info", - // { - // selector: ".RootScene", - // component: "hand-pose__left", - // property: "pose" - // }, - // { - // selector: ".RootScene", - // component: "hand-pose__right", - // property: "pose" - // }, + { + selector: ".RootScene", + component: "hand-pose__left", + property: "pose" + }, + { + selector: ".RootScene", + component: "hand-pose__right", + property: "pose" + }, { selector: ".camera", component: "position" diff --git a/src/utils/webgl.js b/src/utils/webgl.js index 92e95ac0c69d6f627ec27ade69ac8ddc494e127a..b9cbe9c6cc0b1b8272bc53041dae6138d020648c 100644 --- a/src/utils/webgl.js +++ b/src/utils/webgl.js @@ -33,15 +33,3 @@ export function patchWebGLRenderingContext() { } WebGLRenderingContext.prototype.getExtension = patchedGetExtension; } - -// HACK: THIS SHOULD NOT GET MERGED TO MASTER -export function monkeyPatchPannerNode() { - const setPosition = PannerNode.prototype.setPosition; - PannerNode.prototype.setPosition = function(x, y, z) { - if (isNaN(x) || isNaN(y) || isNaN(z)) { - console.error("PannerNode.setPosition caled with invalid position", x, y, z); - } else { - setPosition.call(this, x, y, z); - } - }; -}