mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
make marketplace tablet be clientOnly
This commit is contained in:
parent
08f3a85aab
commit
b377127fc1
2 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ function calcSpawnInfo() {
|
|||
}
|
||||
|
||||
// ctor
|
||||
WebTablet = function (url, width, dpi) {
|
||||
WebTablet = function (url, width, dpi, clientOnly) {
|
||||
|
||||
var ASPECT = 4.0 / 3.0;
|
||||
var WIDTH = width || DEFAULT_WIDTH;
|
||||
|
@ -63,7 +63,7 @@ WebTablet = function (url, width, dpi) {
|
|||
dimensions: {x: WIDTH, y: HEIGHT, z: DEPTH},
|
||||
parentID: MyAvatar.sessionUUID,
|
||||
parentJointIndex: -2
|
||||
});
|
||||
}, clientOnly);
|
||||
|
||||
var WEB_ENTITY_REDUCTION_FACTOR = {x: 0.78, y: 0.85};
|
||||
var WEB_ENTITY_Z_OFFSET = -0.01;
|
||||
|
@ -84,7 +84,7 @@ WebTablet = function (url, width, dpi) {
|
|||
dpi: DPI,
|
||||
parentID: this.tabletEntityID,
|
||||
parentJointIndex: -1
|
||||
});
|
||||
}, clientOnly);
|
||||
|
||||
this.state = "idle";
|
||||
};
|
||||
|
|
|
@ -40,7 +40,7 @@ function shouldShowWebTablet() {
|
|||
function showMarketplace(marketplaceID) {
|
||||
if (shouldShowWebTablet()) {
|
||||
updateButtonState(true);
|
||||
marketplaceWebTablet = new WebTablet("https://metaverse.highfidelity.com/marketplace");
|
||||
marketplaceWebTablet = new WebTablet("https://metaverse.highfidelity.com/marketplace", null, null, false);
|
||||
} else {
|
||||
var url = MARKETPLACE_URL;
|
||||
if (marketplaceID) {
|
||||
|
|
Loading…
Reference in a new issue