GLTFSceneKit icon indicating copy to clipboard operation
GLTFSceneKit copied to clipboard

GLTFUnarchiver + GLTFSceneSource: add embedExternalImages option

Open kohlmannj opened this issue 5 years ago • 0 comments

During development on an internal tool, a colleague and I needed an option to suppress GLTFSceneKit’s default behavior of embedding external image data into a SceneKit file.

This PR achieves that by adding a embedExternalImages option to GTFSceneSource constructor, which is true by default, thereby matching GLTFSceneKit’s current behavior.

When the setting is false, a GLTFUnarchiver class instance will return a URL to an image, as extracted from a .gltf file, rather than Image data.

kohlmannj avatar Apr 20 '19 14:04 kohlmannj