aframe-inspector icon indicating copy to clipboard operation
aframe-inspector copied to clipboard

TextureWidget crashes when there are cached video textures

Open speigg opened this issue 7 years ago • 2 comments

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

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.

speigg avatar May 08 '17 20:05 speigg

This has been fixed by #680

vincentfretin avatar Apr 15 '23 12:04 vincentfretin