mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 14:02:57 +02:00
Merge pull request #7166 from ericrius1/editFix
Fixed bug with parsing numbers for edit js
This commit is contained in:
commit
f82e5e2cd6
2 changed files with 1 additions and 3 deletions
|
@ -75,7 +75,7 @@
|
||||||
function createEmitNumberPropertyUpdateFunction(propertyName) {
|
function createEmitNumberPropertyUpdateFunction(propertyName) {
|
||||||
return function() {
|
return function() {
|
||||||
EventBridge.emitWebEvent(
|
EventBridge.emitWebEvent(
|
||||||
'{ "type":"update", "properties":{"' + propertyName + '":' + Number(this.value.toFixed(4)) + '}}'
|
'{ "type":"update", "properties":{"' + propertyName + '":' + parseFloat(this.value).toFixed(4) + '}}'
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,11 +32,9 @@ ParticleExplorerTool = function() {
|
||||||
|
|
||||||
that.destroyWebView = function() {
|
that.destroyWebView = function() {
|
||||||
if (!that.webView) {
|
if (!that.webView) {
|
||||||
print("EBL CAN'ZT CLOSE WEB VIEW- IT DOESNT EXISTS!")
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
print("EBL CLOSING WEB VIEW")
|
|
||||||
that.webView.close();
|
that.webView.close();
|
||||||
that.webView = null;
|
that.webView = null;
|
||||||
that.activeParticleEntity = 0;
|
that.activeParticleEntity = 0;
|
||||||
|
|
Loading…
Reference in a new issue