Skip to content

Commit

Permalink
Fix module dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Razdvizh committed Feb 27, 2024
1 parent 13f2d54 commit ca01845
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Source/VisualU/Public/SVisualImageBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ inline FSlateBrush SVisualImageBase<DerivedT>::ConvertToBrush() const

if (IsResourceValid()) //step 1 - Is Resource Valid
{
UObject* FinalResource = GetFinalResource(); //step 2(opt.) - Get Final Resource
UObject* FinalResource = GetFinalResource(); //step 2 - Get Final Resource

checkSlow(FinalResource); // < body

Expand All @@ -79,13 +79,13 @@ inline int32 SVisualImageBase<DerivedT>::OnPaint(const FPaintArgs& Args, const F
{
const FSlateBrush Brush = ConvertToBrush(); //step 1 - Get FSlateBrush

const FLinearColor FinalColorAndOpacity = GetFinalColorAndOpacity(InWidgetStyle); //step 2(opt.) - Get Color And Opacity
const FLinearColor FinalColorAndOpacity = GetFinalColorAndOpacity(InWidgetStyle); //step 2(opt.) - Get Color And Opacity TODO: Make optional

if (Brush.GetResourceObject() != nullptr) // < Body
{
PreSlateDrawElementExtension();

const FGeometry CustomGeometry = MakeCustomGeometry(AllottedGeometry); //step 3(opt.) Make Custom Gemoetry
const FGeometry CustomGeometry = MakeCustomGeometry(AllottedGeometry); //step 3(opt.) Make Custom Gemoetry TODO: Make optional
FSlateDrawElement::MakeBox(OutDrawElements, LayerId, CustomGeometry.ToPaintGeometry(), &Brush, ESlateDrawEffect::None, FinalColorAndOpacity);

PostSlateDrawElementExtension();
Expand Down
11 changes: 1 addition & 10 deletions Source/VisualU/VisualU.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,9 @@ public VisualU(ReadOnlyTargetRules Target) : base(Target)
"Slate",
"SlateCore",
"UMG",
"UnrealEd"
"AssetRegistry"
// ... add private dependencies that you statically link with here ...
}
);


DynamicallyLoadedModuleNames.AddRange(
new string[]
{
// ... add any modules that your module loads dynamically here ...
"AssetRegistry",
}
);
}
}

0 comments on commit ca01845

Please sign in to comment.