mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-28 11:58:47 +02:00
fixed edit bug
This commit is contained in:
parent
5aa2979a86
commit
5f5af9c6a0
1 changed files with 1 additions and 28 deletions
|
@ -313,14 +313,6 @@
|
||||||
var elHyperlinkDescription = document.getElementById("property-hyperlink-description");
|
var elHyperlinkDescription = document.getElementById("property-hyperlink-description");
|
||||||
var elHyperlinkSections = document.querySelectorAll(".hyperlink-section");
|
var elHyperlinkSections = document.querySelectorAll(".hyperlink-section");
|
||||||
|
|
||||||
var elParticleSections = document.querySelectorAll(".particle-section");
|
|
||||||
allSections.push(elParticleSections);
|
|
||||||
var elParticleIsEmitting = document.getElementById("property-particle-is-emitting");
|
|
||||||
var elParticleMaxParticles = document.getElementById("property-particle-maxparticles");
|
|
||||||
var elParticleLifeSpan = document.getElementById("property-particle-lifespan");
|
|
||||||
var elParticleEmitRate = document.getElementById("property-particle-emit-rate");
|
|
||||||
var elParticleRadius = document.getElementById("property-particle-radius");
|
|
||||||
var elParticleTextures = document.getElementById("property-particle-textures");
|
|
||||||
|
|
||||||
var elTextSections = document.querySelectorAll(".text-section");
|
var elTextSections = document.querySelectorAll(".text-section");
|
||||||
allSections.push(elTextSections);
|
allSections.push(elTextSections);
|
||||||
|
@ -602,18 +594,6 @@
|
||||||
elZoneSkyboxURL.value = properties.skybox.url;
|
elZoneSkyboxURL.value = properties.skybox.url;
|
||||||
|
|
||||||
showElements(document.getElementsByClassName('skybox-section'), elZoneBackgroundMode.value == 'skybox');
|
showElements(document.getElementsByClassName('skybox-section'), elZoneBackgroundMode.value == 'skybox');
|
||||||
} else if (properties.type == "ParticleEffect") {
|
|
||||||
for (var i = 0; i < elParticleSections.length; i++) {
|
|
||||||
elParticleSections[i].style.display = 'block';
|
|
||||||
}
|
|
||||||
|
|
||||||
elParticleIsEmitting.checked = properties.isEmitting;
|
|
||||||
elParticleMaxParticles.value = properties.maxParticles;
|
|
||||||
elParticleLifeSpan.value = properties.lifespan.toFixed(2);
|
|
||||||
elParticleEmitRate.value = properties.emitRate.toFixed(1);
|
|
||||||
elParticleRadius.value = properties.particleRadius.toFixed(3);
|
|
||||||
elParticleTextures.value = properties.textures;
|
|
||||||
|
|
||||||
} else if (properties.type == "PolyVox") {
|
} else if (properties.type == "PolyVox") {
|
||||||
for (var i = 0; i < elPolyVoxSections.length; i++) {
|
for (var i = 0; i < elPolyVoxSections.length; i++) {
|
||||||
elPolyVoxSections[i].style.display = 'block';
|
elPolyVoxSections[i].style.display = 'block';
|
||||||
|
@ -749,13 +729,6 @@
|
||||||
|
|
||||||
elWebSourceURL.addEventListener('change', createEmitTextPropertyUpdateFunction('sourceUrl'));
|
elWebSourceURL.addEventListener('change', createEmitTextPropertyUpdateFunction('sourceUrl'));
|
||||||
|
|
||||||
elParticleIsEmitting.addEventListener('change', createEmitCheckedPropertyUpdateFunction('isEmitting'));
|
|
||||||
elParticleMaxParticles.addEventListener('change', createEmitNumberPropertyUpdateFunction('maxParticles'));
|
|
||||||
elParticleLifeSpan.addEventListener('change', createEmitNumberPropertyUpdateFunction('lifespan'));
|
|
||||||
elParticleEmitRate.addEventListener('change', createEmitNumberPropertyUpdateFunction('emitRate'));
|
|
||||||
elParticleRadius.addEventListener('change', createEmitNumberPropertyUpdateFunction('particleRadius'));
|
|
||||||
elParticleTextures.addEventListener('change', createEmitTextPropertyUpdateFunction('textures'));
|
|
||||||
|
|
||||||
elModelURL.addEventListener('change', createEmitTextPropertyUpdateFunction('modelURL'));
|
elModelURL.addEventListener('change', createEmitTextPropertyUpdateFunction('modelURL'));
|
||||||
elShapeType.addEventListener('change', createEmitTextPropertyUpdateFunction('shapeType'));
|
elShapeType.addEventListener('change', createEmitTextPropertyUpdateFunction('shapeType'));
|
||||||
elCompoundShapeURL.addEventListener('change', createEmitTextPropertyUpdateFunction('compoundShapeURL'));
|
elCompoundShapeURL.addEventListener('change', createEmitTextPropertyUpdateFunction('compoundShapeURL'));
|
||||||
|
|
Loading…
Reference in a new issue