repo: janusweb action: commit revision: path_from: revision_from: f46e784c7fe04dca2d5d57411816ff282943e9dc: path_to: revision_to:
commit f46e784c7fe04dca2d5d57411816ff282943e9dc Author: James BaicoianuDate: Mon Oct 26 13:28:38 2020 -0700 Fix videoasset-related error in object.onBeforeRender diff --git a/scripts/object.js b/scripts/object.js
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -1087,7 +1087,7 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
this.vrlayer = new THREE.Layers();
this.vrlayer.set(2);
}
- if (m.map === this.videotexture) {
+ if (m.map === this.videotexture && this.videoasset) {
if (this.videoasset.ou3d) {
if (camera.layers.test(this.vrlayer)) {
m.map.offset.y = (this.videoasset.reverse3d ? .5 : 0);
-----END OF PAGE-----