SketchUp / sketchup-stl

A SketchUp Ruby Extension that adds STL (STereoLithography) file format import and export.
http://extensions.sketchup.com/content/sketchup-stl
MIT License
248 stars 68 forks source link

Import without opening Options and clicking Apply doesn't use last settings #49

Closed thomthom closed 12 years ago

thomthom commented 12 years ago

Just noticed this. When I started SketchUp and imported an STL model without modifying any import options it would not use the options from last session - instead id's use the defaults.

thomthom commented 12 years ago

Duh! The only code that reads the last settings is the options dialog code.

The code that imports needs to ensure the settings are loaded. Probably refactor the read and write chunks into methods that can be called by both the importer and option window.