trim support to part shadow in non-belt modes. fix part support offset

This commit is contained in:
Stewart Allen 2021-01-27 23:47:06 -05:00
commit cbf5d492b8
2 changed files with 23 additions and 6 deletions

View file

@ -860,12 +860,14 @@
}
function loadDeviceImage(dev, url) {
new THREE.TextureLoader().load(url || dev.imageURL, texture => {
let turl = url || dev.imageURL;
if (!turl) return;
new THREE.TextureLoader().load(turl, texture => {
loadDeviceTexture(dev, texture);
}, inc => {
console.log({load_inc: inc});
}, error => {
console.log({load_error: error});
console.log({load_error: error, turl});
clearDeviceTexture();
});
}