(dfb5c5dec) Option to determine the orientation of a wall in xml (if omitted, the orientation is determined automatically based on the dimensions of the wall instance, just like before).
This commit is contained in:
@@ -300,7 +300,11 @@ namespace Barotrauma
|
||||
TextureScale = sp.TextureScale;
|
||||
#endif
|
||||
spriteColor = prefab.SpriteColor;
|
||||
if (ResizeHorizontal && !ResizeVertical)
|
||||
if (sp.IsHorizontal.HasValue)
|
||||
{
|
||||
IsHorizontal = sp.IsHorizontal.Value;
|
||||
}
|
||||
else if (ResizeHorizontal && !ResizeVertical)
|
||||
{
|
||||
IsHorizontal = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user