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

@@ -55,8 +55,9 @@ namespace FlaxEngine.GUI
/// </summary>
public bool AutomaticInvalidate { get; set; } = true;
#if FLAX_EDITOR
private bool CanEditTextureSize => !_autoSize;
#endif
/// <summary>
/// Invalidates the cached image of children controls and invokes the redraw to the texture.
/// </summary>
@@ -105,7 +106,7 @@ namespace FlaxEngine.GUI
}
/// <inheritdoc />
public override void DrawSelf()
public override void Draw()
{
// Draw cached texture
if (_texture && !_invalid && !_isDuringTextureDraw)
@@ -119,7 +120,7 @@ namespace FlaxEngine.GUI
}
// Draw default UI directly
base.DrawSelf();
base.Draw();
}
/// <inheritdoc />