Fix drawing editor thumbnails when texture used by asset is using dynamic streaming

This commit is contained in:
2026-04-19 22:37:58 +02:00
parent 8553785397
commit 635ef0ad66
12 changed files with 36 additions and 42 deletions
@@ -302,6 +302,12 @@ bool TextureBase::HasStreamingError() const
return _texture.Streaming.Error;
}
void TextureBase::SetStreamingVisible() const
{
if (_texture.GetTexture())
_texture.GetTexture()->LastRenderTime = Platform::GetTimeSeconds();
}
BytesContainer TextureBase::GetMipData(int32 mipIndex, int32& rowPitch, int32& slicePitch)
{
BytesContainer result;
@@ -153,6 +153,11 @@ public:
/// </summary>
API_PROPERTY() bool HasStreamingError() const;
/// <summary>
/// Sets the texture as visible this frame to inform streaming about usage which will stream boost its priority for the streaming.
/// </summary>
API_FUNCTION() void SetStreamingVisible() const;
public:
/// <summary>
/// Gets the mip data.