mirror of
https://github.com/storytold/cadcraft.git
synced 2026-11-10 12:30:16 -06:00
The bridge took the version of the kept groups from $ACADVER, but SAVEAS writes the saved version there and the kept groups stay as they were read. After a 2018 drawing was saved as a 2004 DWG, the next save read its mental ray render settings as 2004 (class version 2, which the ODA File Converter rejects) and a 2004 field lost its cached value. Foreign now records the $ACADVER of the file the kept data was read from (Foreign::version), and the DWG save passes that. The new declare_version test also moves out of the doc comment it was pasted into. Both reported by austin62jake on #2471.