mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Moved WebBridge sync to oninput:
This avoids the settings_update being called only when the image finishes loaded
This commit is contained in:
parent
d878ec66e2
commit
32982326b1
1 changed files with 1 additions and 1 deletions
|
@ -530,13 +530,13 @@ HifiEntityUI.prototype = {
|
||||||
textureImage.classList.remove("no-preview");
|
textureImage.classList.remove("no-preview");
|
||||||
textureImage.classList.add("no-texture");
|
textureImage.classList.add("no-texture");
|
||||||
}
|
}
|
||||||
self.webBridgeSync(group.id, url);
|
|
||||||
}, 250);
|
}, 250);
|
||||||
|
|
||||||
textureUrl.oninput = function (event) {
|
textureUrl.oninput = function (event) {
|
||||||
// Add throttle
|
// Add throttle
|
||||||
var url = event.target.value;
|
var url = event.target.value;
|
||||||
imageLoad(url);
|
imageLoad(url);
|
||||||
|
self.webBridgeSync(group.id, url);
|
||||||
};
|
};
|
||||||
textureUrl.onchange = textureUrl.oninput;
|
textureUrl.onchange = textureUrl.oninput;
|
||||||
textureImage.appendChild(image);
|
textureImage.appendChild(image);
|
||||||
|
|
Loading…
Reference in a new issue