CesiumGS / gltf-pipeline

Content pipeline tools for optimizing glTF assets. :globe_with_meridians:
Apache License 2.0
1.87k stars 241 forks source link

Fix parsing mapping with # in the file name. #621

Open IvanLi-CN opened 1 year ago

IvanLi-CN commented 1 year ago
gltf-pipeline -i model.glb -o outputs/model.gltf -t
gltf-pipeline -o model-16.glb -i outputs/model.gltf -b
image

Fixed the problem that when the file name of a model mapping has a "#" symbol, the content after it is parsed as URL Hash, resulting in a missing file address.

leonchen commented 1 year ago

I think the fix should replace all the # characters so it would either use replaceAll or regexp.