(5fbd1cdee) Reload sprite and reset the depth when reset to prefab method is called.

This commit is contained in:
Joonas Rikkonen
2019-04-10 13:30:08 +03:00
parent 06ac9a04ba
commit af260565ad
2 changed files with 7 additions and 0 deletions
@@ -2062,6 +2062,8 @@ namespace Barotrauma
public virtual void Reset()
{
SerializableProperties = SerializableProperty.DeserializeProperties(this, Prefab.ConfigElement);
Sprite.ReloadXML();
SpriteDepth = Sprite.Depth;
components.ForEach(c => c.Reset());
}