Closed trusktr closed 2 years ago
The missing .value was causing that conditional branch to never run, so trying to do the following wasn't working:
.value
material.texture = new TextureLoader.load('foo.jpg') // does not wait for load, causes saveDimensions to result in [1,1]
Before this change it required a workaround:
new TextureLoader.load('foo.jpg', tex => { material.texture = tex // now it measures dimensions because the image is loaded })
The missing
.value
was causing that conditional branch to never run, so trying to do the following wasn't working:Before this change it required a workaround: