mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 02:03:57 +02:00
Fixed bug with parsing numbers for editjs
This commit is contained in:
parent
04bd32e008
commit
749f4478ab
2 changed files with 1 additions and 3 deletions
|
@ -75,7 +75,7 @@
|
|||
function createEmitNumberPropertyUpdateFunction(propertyName) {
|
||||
return function() {
|
||||
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() {
|
||||
if (!that.webView) {
|
||||
print("EBL CAN'ZT CLOSE WEB VIEW- IT DOESNT EXISTS!")
|
||||
return;
|
||||
}
|
||||
|
||||
print("EBL CLOSING WEB VIEW")
|
||||
that.webView.close();
|
||||
that.webView = null;
|
||||
that.activeParticleEntity = 0;
|
||||
|
|
Loading…
Reference in a new issue