(c224aa4f4) Refresh the size of the linked gap when a door's scale is changed

This commit is contained in:
Joonas Rikkonen
2019-06-14 16:15:00 +03:00
parent d08132afc5
commit c76ae7612d
4 changed files with 32 additions and 8 deletions
@@ -217,6 +217,14 @@ namespace Barotrauma
int newHeight = ResizeVertical ? rect.Height : (int)(defaultRect.Height * relativeScale);
Rect = new Rectangle(rect.X, rect.Y, newWidth, newHeight);
}
if (components != null)
{
foreach (ItemComponent component in components)
{
component.OnScaleChanged();
}
}
}
}