Files
UnrealEngineUWP/Engine/Plugins/Runtime/GeometryCache/Source/GeometryCacheEd/Private/Widgets/SGeometryCacheTimelineOverlay.cpp
vedang javdekar 25feae5608 MLD - Preview for .abc files
- Custom Preview for .abc files.
- Ability to inspect animation with a timeline control
- Editor Viewport for Geometry Cache assets

#jira UE-177999
#rb Anousack.Kitisa

[CL 35090565 by vedang javdekar in ue5-main branch]
2024-07-25 14:36:40 -04:00

29 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "SGeometryCacheTimelineOverlay.h"
#include "GeometryCacheTimeSliderController.h"
#include "HAL/PlatformCrt.h"
#include "Misc/Optional.h"
class FSlateRect;
class FWidgetStyle;
struct FGeometry;
int32 SGeometryCacheTimelineOverlay::OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const
{
FPaintViewAreaArgs PaintArgs;
PaintArgs.bDisplayTickLines = bDisplayTickLines.Get();
PaintArgs.bDisplayScrubPosition = bDisplayScrubPosition.Get();
if (PaintPlaybackRangeArgs.IsSet())
{
PaintArgs.PlaybackRangeArgs = PaintPlaybackRangeArgs.Get();
}
TimeSliderController->OnPaintViewArea(AllottedGeometry, MyCullingRect, OutDrawElements, LayerId, ShouldBeEnabled(bParentEnabled), PaintArgs);
return SCompoundWidget::OnPaint(Args, AllottedGeometry, MyCullingRect, OutDrawElements, LayerId, InWidgetStyle, bParentEnabled);
}