Closed speigg closed 3 months ago
getTextureFromSrc from the TextureWidget assumes that each textureCache hash is simply JSON string, which is not always the case. See: https://github.com/aframevr/aframe/blob/6a236273bfd6bd673e36ff4d376135906ba57ed6/src/systems/material.js#L207
getTextureFromSrc
When trying to JSON.parse() a textureCache hash that is generated from a video texture, the TextureWidget throws an "Unexpected token a in JSON" error.
This has been fixed by #680
@dmarcos please close this issue.
getTextureFromSrc
from the TextureWidget assumes that each textureCache hash is simply JSON string, which is not always the case. See: https://github.com/aframevr/aframe/blob/6a236273bfd6bd673e36ff4d376135906ba57ed6/src/systems/material.js#L207When trying to JSON.parse() a textureCache hash that is generated from a video texture, the TextureWidget throws an "Unexpected token a in JSON" error.