Skip to content

Commit

Permalink
Merge pull request #310 from Th3Fanbus/fix-rootcomponent-mobility
Browse files Browse the repository at this point in the history
FGBuildable.cpp: Fix root component mobility
  • Loading branch information
budak7273 authored Nov 3, 2024
2 parents 7225036 + 9a00835 commit 94927cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/FactoryGame/Private/Buildables/FGBuildable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ AFGBuildable::AFGBuildable(const FObjectInitializer& ObjectInitializer) : Super(
this->NetDormancy = ENetDormancy::DORM_Initial;
this->NetCullDistanceSquared = 5625000000.0;
this->RootComponent = CreateDefaultSubobject<USceneComponent>(TEXT("RootComponent"));
this->RootComponent->SetMobility(EComponentMobility::Static);
}
void AFGBuildable::Serialize(FArchive& ar){ Super::Serialize(ar); }
void AFGBuildable::PostLoad(){ Super::PostLoad(); }
Expand Down

0 comments on commit 94927cf

Please sign in to comment.