Fix models uvs preview drawing
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user