Skip to content
Snippets Groups Projects
Commit a4110455 authored by netpro2k's avatar netpro2k
Browse files

Revert "Hack to remove hand states and monkeypatch PannerNode - This should be"

This reverts commit 1dbd414d.
parent 1dbd414d
No related branches found
No related tags found
No related merge requests found
......@@ -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";
......
......@@ -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"
......
......@@ -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);
}
};
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment