mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-16 12:32:22 +02:00
Tidying
This commit is contained in:
parent
a52d8d1982
commit
c87149cfc2
3 changed files with 8 additions and 2 deletions
|
@ -316,7 +316,7 @@ private:
|
|||
float _localRenderAlpha;
|
||||
bool _localRenderAlphaChanged;
|
||||
bool _defaultSettings;
|
||||
bool _dimensionsInitialized = true; // Only false if creating an entity localy with no dimensions properties
|
||||
bool _dimensionsInitialized = true; // Only false if creating an entity locally with no dimensions properties
|
||||
|
||||
// NOTE: The following are pseudo client only properties. They are only used in clients which can access
|
||||
// properties of model geometry. But these properties are not serialized like other properties.
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
|
||||
// Clara library page.
|
||||
if (location.href.indexOf("clara.io/library") !== -1) {
|
||||
// Make entries navigate to "Image" view instead of default "Real Time" view.
|
||||
var elements = $("a.thumbnail");
|
||||
for (var i = 0, length = elements.length; i < length; i++) {
|
||||
var value = elements[i].getAttribute("href");
|
||||
|
@ -93,12 +94,15 @@
|
|||
|
||||
// Clara item page.
|
||||
if (location.href.indexOf("clara.io/view/") !== -1) {
|
||||
// Make site navigation links retain gameCheck etc. parameters.
|
||||
var element = $("a[href^=\'/library\']")[0];
|
||||
var parameters = "?gameCheck=true&public=true";
|
||||
var href = element.getAttribute("href");
|
||||
if (href.slice(-parameters.length) !== parameters) {
|
||||
element.setAttribute("href", href + parameters);
|
||||
}
|
||||
|
||||
// Replace download options with a single, "Download to High Fidelity" option.
|
||||
var buttons = $("a.embed-button").parent("div");
|
||||
if (buttons.length > 0) {
|
||||
var downloadFBX = buttons.find("a[data-extension=\'fbx\']")[0];
|
||||
|
@ -109,6 +113,8 @@
|
|||
downloadFBX.innerHTML = "<i class=\'glyphicon glyphicon-download-alt\'></i> Download to High Fidelity";
|
||||
buttons.children(":nth-child(2), .btn-group , .embed-button").each(function () { this.remove(); });
|
||||
}
|
||||
|
||||
// Automatic download to High Fidelity.
|
||||
var downloadTimer;
|
||||
function startAutoDownload() {
|
||||
if (!downloadTimer) {
|
||||
|
|
|
@ -49,9 +49,9 @@ WebTablet = function (url, width, dpi, clientOnly) {
|
|||
var DPI = dpi || DEFAULT_DPI;
|
||||
|
||||
var spawnInfo = calcSpawnInfo();
|
||||
|
||||
var tabletEntityPosition = spawnInfo.position;
|
||||
var tabletEntityRotation = spawnInfo.rotation;
|
||||
|
||||
this.tabletEntityID = Entities.addEntity({
|
||||
name: "tablet",
|
||||
type: "Model",
|
||||
|
|
Loading…
Reference in a new issue