withoutImages method
This model with every image's pixels let go of (its bytes and levels empty; mime types and names kept): what is kept once the textures are on the GPU, so a cooked file's or a GLB's buffer can be freed.
Implementation
ModelData withoutImages() => ModelData(
name: name,
meshes: meshes,
materials: materials,
textures: textures,
images: [
for (final image in images)
ImageData(Uint8List(0), image.mimeType, image.name),
],
nodes: nodes,
roots: roots,
lights: lights,
bounds: bounds,
skins: skins,
animations: animations,
warnings: warnings,
);