mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 02:33:09 +02:00
Remove superfluous variable
This commit is contained in:
parent
03cec8cb54
commit
8c9bdf51a7
1 changed files with 2 additions and 4 deletions
|
@ -2362,7 +2362,6 @@ var showMenuItem = propertyMenu.addMenuItem("Show in Marketplace");
|
||||||
|
|
||||||
var propertiesTool = new PropertiesTool();
|
var propertiesTool = new PropertiesTool();
|
||||||
var particleExplorerTool = new ParticleExplorerTool();
|
var particleExplorerTool = new ParticleExplorerTool();
|
||||||
var selectedParticleEntity = 0;
|
|
||||||
var selectedParticleEntityID = null;
|
var selectedParticleEntityID = null;
|
||||||
|
|
||||||
function selectParticleEntity(entityID) {
|
function selectParticleEntity(entityID) {
|
||||||
|
@ -2376,7 +2375,6 @@ function selectParticleEntity(entityID) {
|
||||||
particleExplorerTool.destroyWebView();
|
particleExplorerTool.destroyWebView();
|
||||||
particleExplorerTool.createWebView();
|
particleExplorerTool.createWebView();
|
||||||
|
|
||||||
selectedParticleEntity = entityID;
|
|
||||||
particleExplorerTool.setActiveParticleEntity(entityID);
|
particleExplorerTool.setActiveParticleEntity(entityID);
|
||||||
particleExplorerTool.setActiveParticleProperties(properties);
|
particleExplorerTool.setActiveParticleProperties(properties);
|
||||||
|
|
||||||
|
@ -2401,13 +2399,13 @@ entityListTool.webView.webEventReceived.connect(function (data) {
|
||||||
var ids = data.entityIds;
|
var ids = data.entityIds;
|
||||||
if (ids.length === 1) {
|
if (ids.length === 1) {
|
||||||
if (Entities.getEntityProperties(ids[0], "type").type === "ParticleEffect") {
|
if (Entities.getEntityProperties(ids[0], "type").type === "ParticleEffect") {
|
||||||
if (JSON.stringify(selectedParticleEntity) === JSON.stringify(ids[0])) {
|
if (JSON.stringify(selectedParticleEntityID) === JSON.stringify(ids[0])) {
|
||||||
// This particle entity is already selected, so return
|
// This particle entity is already selected, so return
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Destroy the old particles web view first
|
// Destroy the old particles web view first
|
||||||
} else {
|
} else {
|
||||||
selectedParticleEntity = 0;
|
selectedParticleEntityID = 0;
|
||||||
particleExplorerTool.destroyWebView();
|
particleExplorerTool.destroyWebView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue