tangrams / tangram

WebGL map rendering engine for creative cartography
https://tangram.city
MIT License
2.2k stars 290 forks source link

Resolve texture imports using final merged scene #770

Closed bcamper closed 3 years ago

bcamper commented 3 years ago

Resolve named textures using final merged scene. This fixes cases where named textures defined via global properties in imported scenes would be interpreted as URLs, if the texture name was not yet defined in the imported scene, but which will be defined in the final merged scene (e.g. the texture name is defined by an ancestor/importing scene, but not the descendant/imported scene where it is used).

See https://github.com/tangrams/tangram/issues/748 for issue, and https://github.com/tangrams/tangram-es/pull/2201 for Tangram ES fix.