Skip to content

Commit 46c12e3

Browse files
committed
Update
1 parent 5be373a commit 46c12e3

File tree

2 files changed

+28
-31
lines changed

2 files changed

+28
-31
lines changed

Source/VictoryBPLibrary/Private/VictoryBPFunctionLibrary.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4150,7 +4150,9 @@ UTexture2D* UVictoryBPFunctionLibrary::LoadTexture2D_FromDDSFile(const FString&
41504150
/* Add new mip */
41514151
else
41524152
{
4153-
FTexture2DMipMap* Mip = new( Texture->PlatformData->Mips ) FTexture2DMipMap( );
4153+
//FTexture2DMipMap* Mip = new( Texture->PlatformData->Mips ) FTexture2DMipMap( );
4154+
FTexture2DMipMap* Mip = new FTexture2DMipMap();
4155+
Texture->PlatformData->Mips.Add(Mip);
41544156
Mip->SizeX = CurrentWidth;
41554157
Mip->SizeY = CurrentHeight;
41564158

@@ -5404,8 +5406,8 @@ void UVictoryBPFunctionLibrary::GenericArray_Sort(void* TargetArray, const FArra
54045406
UObject* LeftObject = ObjectProperty->GetObjectPropertyValue(ArrayHelper.GetRawPtr(j));
54055407
UObject* RightObject = ObjectProperty->GetObjectPropertyValue(ArrayHelper.GetRawPtr(j + 1));
54065408

5407-
FProperty* LeftProperty = FindField<FProperty>(LeftObject->GetClass(), VariableName);
5408-
FProperty* RightProperty = FindField<FProperty>(RightObject->GetClass(), VariableName);
5409+
FProperty* LeftProperty = FindFProperty<FProperty>(LeftObject->GetClass(), VariableName);
5410+
FProperty* RightProperty = FindFProperty<FProperty>(RightObject->GetClass(), VariableName);
54095411

54105412
if (LeftProperty && RightProperty)
54115413
{
@@ -5426,7 +5428,7 @@ void UVictoryBPFunctionLibrary::GenericArray_Sort(void* TargetArray, const FArra
54265428

54275429
if (const FStructProperty* StructProperty = Cast<const FStructProperty>(ArrayProp->Inner))
54285430
{
5429-
Property = FindField<FProperty>(StructProperty->Struct, VariableName);
5431+
Property = FindFProperty<FProperty>(StructProperty->Struct, VariableName);
54305432
}
54315433
else
54325434
{

VictoryBPLibrary.uplugin

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,33 @@
11
{
2-
"FileVersion" : 3,
3-
"Version" : 1,
4-
"VersionName" : "1.0",
5-
"FriendlyName" : "Victory Plugin",
6-
"Description" : "120+ Custom Blueprint Nodes For You! <3 Rama",
7-
"Category" : "Rama",
8-
"CreatedBy" : "Rama",
9-
"CreatedByURL" : "http://www.ue4code.com",
10-
"DocsURL" : "http://www.ue4code.com",
11-
"MarketplaceURL" : "http://www.ue4code.com",
12-
"SupportURL" : "http://www.ue4code.com",
13-
"EnabledByDefault" : true,
14-
"CanContainContent" : false,
15-
"IsBetaVersion" : false,
16-
"Installed" : true,
17-
"RequiresBuildPlatform" : false,
18-
"Modules" :
19-
[
2+
"FileVersion": 3,
3+
"Version": 1,
4+
"VersionName": "1.0",
5+
"FriendlyName": "Victory Plugin",
6+
"Description": "120+ Custom Blueprint Nodes For You! <3 Rama",
7+
"Category": "Rama",
8+
"CreatedBy": "Rama",
9+
"CreatedByURL": "http://www.ue4code.com",
10+
"DocsURL": "http://www.ue4code.com",
11+
"MarketplaceURL": "http://www.ue4code.com",
12+
"SupportURL": "http://www.ue4code.com",
13+
"EngineVersion": "4.26.0",
14+
"CanContainContent": false,
15+
"Installed": true,
16+
"Modules": [
2017
{
21-
"Name" : "VictoryBPLibrary",
22-
"Type" : "Runtime",
23-
"LoadingPhase" : "PreDefault",
24-
"WhitelistPlatforms" :
25-
[
18+
"Name": "VictoryBPLibrary",
19+
"Type": "Runtime",
20+
"LoadingPhase": "PreDefault",
21+
"WhitelistPlatforms": [
2622
"Win64",
27-
"Win32",
23+
"Win32"
2824
]
2925
}
3026
],
31-
"Plugins" :
32-
[
27+
"Plugins": [
3328
{
3429
"Name": "ApexDestruction",
3530
"Enabled": true
3631
}
3732
]
38-
}
33+
}

0 commit comments

Comments
 (0)