public UIAtlas replacement
{
get
{
return mReplacement;
}
set
{
UIAtlas rep = value;
if (rep == this) rep = null;
if (mReplacement != rep)
{
if (rep != null && rep.replacement == this) rep.replacement = null;
if (mReplacement != null) MarkAsChanged();
mReplacement = rep;
if (rep != null) material = null; // <-- this right here
MarkAsChanged();
}
}
}