_SaveSmall Embedded Bug

There is an inconsistency with _SaveSmall compared to using _Save or _SaveAs. It defaults to SaveTextures=No where the others default to SaveTextures=Yes.

_SaveSmall also doesn’t present an option for SaveTextures, nor does -SaveSmall present any command line options if the file already has a name.

Here are some sample output files with a picture frame in them

-Save SaveSmall=Yes
-SaveAs SaveSmall=Yes
_SaveSmall

Clipboard-Save-Small.3dm (197.5 KB)
Clipboard-SaveAs-Small.3dm (198.8 KB)
Clipboard-SaveSmall.3dm (71.6 KB)

Here is the relevant sections from _Audit3dmFile:

Save or SaveAs with SaveSmall=Yes:
Embedded image Table:
    0 embedded images, 24 bytes (offset 35528 to 35552)
  Texture Mapping Table:
    0 texture mappings, 24 bytes (offset 35552 to 35576)
  Legacy Material Table:
    material[0]: Clipboard-3d14cd80-2606-4186-a752-a5ffdfe6496b
    1 materials, 1702 bytes (offset 35576 to 37278)
  Render Materials:
    material[0]: Clipboard-3d14cd80-2606-4186-a752-a5ffdfe6496b
    1 materials, 9001 bytes
  Embedded Files:
    embedded file[0]: C:\Users\EricM\AppData\Local\McNeel\Rhinoceros\8.0\PastedImages\Clipboard-3d14cd80-2606-4186-a752-a5ffdfe6496b.png, 130302 bytes
    1 embedded files, 130302 bytes


SaveSmall:
Embedded image Table:
    0 embedded images, 24 bytes (offset 37133 to 37157)
  Texture Mapping Table:
    0 texture mappings, 24 bytes (offset 37157 to 37181)
  Legacy Material Table:
    material[0]: Clipboard-3d14cd80-2606-4186-a752-a5ffdfe6496b
    1 materials, 1702 bytes (offset 37181 to 38883)
  Render Materials:
    material[0]: Clipboard-3d14cd80-2606-4186-a752-a5ffdfe6496b
    1 materials, 9001 bytes
  Embedded Files:
    0 embedded files, 0 bytes

@Gijs Did this get logged? As much as we try to avoid _SaveSmall, someone on the team occasionally uses it and wipes out all of our reference images.

thanks Eric for the detailed report,
logged as RH-83209 SaveSmall:missing textures