blowfishpro / B9PartSwitch

A Kerbal Space Program plugin designed to implement switching of part meshes, resources, and nodes
GNU Lesser General Public License v3.0
50 stars 33 forks source link

texture modifiers only keep track of renderer, not material #176

Closed blowfishpro closed 4 years ago

blowfishpro commented 4 years ago

it'll be instantiated when it needs to be

right now after a part is copied, the active subtype is re-instantiating the material, but other subtypes are still referencing the old material which will be unused at that point

so instead we just call renderer.material every time, which will instantiate when necessary

Resolves #174