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