Fix models uvs preview drawing

This commit is contained in:
Wojtek Figat
2021-04-29 16:39:26 +02:00
parent c996476a28
commit 05ba9b8d45
3 changed files with 8 additions and 9 deletions

View File

@@ -565,7 +565,6 @@ namespace FlaxEditor.Windows.Assets
public UVsLayoutPreviewControl()
{
Offsets = new Margin(4);
AnchorPreset = AnchorPresets.HorizontalStretchMiddle;
AutomaticInvalidate = false;
}
@@ -619,9 +618,9 @@ namespace FlaxEditor.Windows.Assets
}
/// <inheritdoc />
protected override void DrawChildren()
public override void DrawSelf()
{
base.DrawChildren();
base.DrawSelf();
var size = Size;
if (_channel == UVChannel.None || size.MaxValue < 5.0f)

View File

@@ -114,9 +114,9 @@ namespace FlaxEditor.Windows.Assets
}
/// <inheritdoc />
public override void Draw()
public override void DrawSelf()
{
base.Draw();
base.DrawSelf();
var style = Style.Current;
var asset = _window.Asset;
@@ -676,7 +676,6 @@ namespace FlaxEditor.Windows.Assets
public UVsLayoutPreviewControl()
{
Offsets = new Margin(4);
AnchorPreset = AnchorPresets.HorizontalStretchMiddle;
AutomaticInvalidate = false;
}