mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 17:04:20 +02:00
Fix particle property value reverting to old value when switch tabs
This commit is contained in:
parent
3e100fb141
commit
32c21a1397
1 changed files with 7 additions and 0 deletions
|
@ -52,6 +52,13 @@ ParticleExplorerTool = function() {
|
||||||
data.updatedSettings.emitOrientation = Quat.fromVec3Degrees(data.updatedSettings.emitOrientation);
|
data.updatedSettings.emitOrientation = Quat.fromVec3Degrees(data.updatedSettings.emitOrientation);
|
||||||
}
|
}
|
||||||
Entities.editEntity(that.activeParticleEntity, data.updatedSettings);
|
Entities.editEntity(that.activeParticleEntity, data.updatedSettings);
|
||||||
|
|
||||||
|
for (var key in data.updatedSettings) {
|
||||||
|
if (that.activeParticleProperties.hasOwnProperty(key)) {
|
||||||
|
that.activeParticleProperties[key] = data.updatedSettings[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else if (data.messageType === "page_loaded") {
|
} else if (data.messageType === "page_loaded") {
|
||||||
sendActiveParticleProperties();
|
sendActiveParticleProperties();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue