Add IsSingleFrame to RenderView for thumbnails/pre-render views drawing without temporal effects and LOD transitions

This commit is contained in:
Wojciech Figat
2022-04-04 17:11:01 +02:00
parent 3ded5326a2
commit 4c98e0a335
5 changed files with 24 additions and 13 deletions

View File

@@ -322,13 +322,13 @@ struct TIsPODType<GeometryDrawStateData>
#define GEOMETRY_DRAW_STATE_EVENT_BEGIN(drawState, worldMatrix) \
const auto frame = Engine::FrameCount; \
if (drawState.PrevFrame + 1 < frame) \
if (drawState.PrevFrame + 1 < frame && !renderContext.View.IsSingleFrame) \
{ \
drawState.PrevWorld = worldMatrix; \
}
#define GEOMETRY_DRAW_STATE_EVENT_END(drawState, worldMatrix) \
if (drawState.PrevFrame != frame) \
if (drawState.PrevFrame != frame && !renderContext.View.IsSingleFrame) \
{ \
drawState.PrevWorld = worldMatrix; \
drawState.PrevFrame = frame; \