aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
654 stars 201 forks source link

TextureWidget crashes when there are cached video textures #471

Closed speigg closed 3 months ago

speigg commented 7 years 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

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.

vincentfretin commented 1 year ago

This has been fixed by #680

vincentfretin commented 3 months ago

@dmarcos please close this issue.