(5fbd1cdee) Reload sprite and reset the depth when reset to prefab method is called.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user