repo: janusweb action: commit revision: path_from: revision_from: 48147b9aa678d68cc476bd6ddd098342e36b963d: path_to: revision_to:
commit 48147b9aa678d68cc476bd6ddd098342e36b963d Author: James BaicoianuDate: Wed Sep 18 08:02:56 2019 -0700 Set player visible if selfavatar is set diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -432,6 +432,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
if (!this.room.selfavatar && this.ghost) {
this.ghost.die();
this.ghost = false;
+ this.visible = false;
} else if (!this.ghost && this.room.selfavatar) {
let avatar = this.getAvatarData();
if (avatar) {
@@ -441,6 +442,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
showlabel: false
});
}
+ this.visible = true;
}
//room.add(this);
this.updateGravity();
-----END OF PAGE-----