repo: janusweb action: commit revision: path_from: revision_from: bc3c541b508417583a06f6eaff50ce302ac4ff52: path_to: revision_to:
commit bc3c541b508417583a06f6eaff50ce302ac4ff52 Author: James BaicoianuDate: Wed Nov 3 13:58:50 2021 -0700 Track websurfaces in room.roomassets map so they show in source viewer diff --git a/scripts/room.js b/scripts/room.js
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -727,6 +727,8 @@ elation.require([
var assetlist = roomdata.assets.assetlist;
if (roomdata.assets.websurfaces) {
elation.utils.merge(roomdata.assets.websurfaces, this.websurfaces);
+ if (!this.roomassets.websurface) this.roomassets.websurface = {};
+ elation.utils.merge(roomdata.assets.websurfaces, this.roomassets.websurface);
}
if (roomdata.assets.ghosts) {
@@ -1466,6 +1468,8 @@ console.log('connect room audio to graph', this.audionodes.gain, this.audionodes
} else if (type == 'websurface') {
if (args.id) {
this.websurfaces[args.id] = args;
+ if (!this.roomassets.websurface) this.roomassets.websurface = {};
+ this.roomassets.websurface[args.id] = args;
}
} else if (type == 'script') {
var src = (args.src.match(/^file:/) ? args.src.replace(/^file:/, datapath) : args.src);
-----END OF PAGE-----