Mutagen-Modding / Mutagen

A .NET library for analyzing, creating, and manipulating Bethesda mods
GNU General Public License v3.0
117 stars 32 forks source link

Getting Mutable versions of Non-major records #523

Open Noggog opened 4 months ago

Noggog commented 4 months ago

Given a IModelGetter, how would you get a Model?

IModelGetter modelGetter = ...;
Weapon mutableWeapon = ...;
mutableWeapon.Model = modelGetter

The answer is DeepCopy, but this isn't documented anywhere well. Maybe a Cheatsheet entry, as well as a blurb in the best practices area