Skip to content

Commit aba5bab

Browse files
author
Chris Ashworth
committed
Fixed stack overflow due to duplicate UObject names.
Updated plugin and tested on UE 4.13.
1 parent d2d6006 commit aba5bab

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

‎Plugins/UnrealFastNoisePlugin/Source/UnrealFastNoisePlugin/Private/UFNBlueprintFunctionLibrary.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
UUFNNoiseGenerator* UUFNBlueprintFunctionLibrary::CreateNoiseGenerator(UObject* outer, ENoiseType noiseType, ECellularDistanceFunction cellularDistanceFunction, ECellularReturnType cellularReturnType , EFractalType fractalType, EInterp interpolation, int32 seed, int32 octaves, float frequency, float lacunarity, float fractalGain, EPositionWarpType positionWarpType, float positionWarpAmplitude)
1111
{
12-
UFastNoise* noiseGen = NewObject<UFastNoise>(outer, FName("NoiseGen"));
12+
UFastNoise* noiseGen = NewObject<UFastNoise>(outer);
1313

1414
noiseGen->SetNoiseType(noiseType);
1515
noiseGen->SetSeed(seed);
@@ -35,7 +35,7 @@ UUFNNoiseGenerator* UUFNBlueprintFunctionLibrary::CreateSelectModule(UObject* ou
3535
return nullptr;
3636
}
3737

38-
UUFNSelectModule* newSelectModule = NewObject<UUFNSelectModule>(outer, FName("Select"));
38+
UUFNSelectModule* newSelectModule = NewObject<UUFNSelectModule>(outer);
3939

4040
newSelectModule->inputModule1 = inputModule1;
4141
newSelectModule->inputModule2 = inputModule2;
@@ -54,7 +54,7 @@ UUFNNoiseGenerator* UUFNBlueprintFunctionLibrary::CreateBlendModule(UObject* out
5454
return nullptr;
5555
}
5656

57-
UUFNBlendModule* blendModule = NewObject<UUFNBlendModule>(outer, FName("Blend"));
57+
UUFNBlendModule* blendModule = NewObject<UUFNBlendModule>(outer);
5858

5959
blendModule->inputModule1 = inputModule1;
6060
blendModule->inputModule2 = inputModule2;
@@ -167,7 +167,7 @@ UUFNNoiseGenerator* UUFNBlueprintFunctionLibrary::Create3SelectModule(UObject* o
167167
return nullptr;
168168
}
169169

170-
UUFN3SelectModule* newSelectModule = NewObject<UUFN3SelectModule>(outer, FName("Select"));
170+
UUFN3SelectModule* newSelectModule = NewObject<UUFN3SelectModule>(outer);
171171

172172
newSelectModule->inputModule1 = inputModule1;
173173
newSelectModule->inputModule2 = inputModule2;

‎UnrealFastNoise.uproject‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"FileVersion": 3,
3-
"EngineAssociation": "4.12",
3+
"EngineAssociation": "4.13",
44
"Category": "",
55
"Description": "",
66
"Modules": [
@@ -9,5 +9,12 @@
99
"Type": "Runtime",
1010
"LoadingPhase": "Default"
1111
}
12+
],
13+
"Plugins": [
14+
{
15+
"Name": "RuntimeMeshComponent",
16+
"Enabled": true,
17+
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/ad0b45a6a31e462aba7cf7c790a9c125"
18+
}
1219
]
1320
}

0 commit comments

Comments
 (0)