shadowmage45 / TexturesUnlimited

KSP Shader, Texture, and Modeling Utilities
GNU General Public License v3.0
29 stars 17 forks source link

TU - Clear collections on ModuleManager data reload #66

Closed shadowmage45 closed 5 years ago

shadowmage45 commented 5 years ago

Currently TU will error out if MM is reloaded due to it attempting to reload shader bundles/etc, which internally are dictionaries that throw exceptions on attempt to re-insert an existing key.

Collections should be cleared at the start of the MM-post-load-callback method. This will ensure they are empty for each and every load/reload of the game database.

shadowmage45 commented 5 years ago

Fixed in dev. All collections cleared on load.