diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/ProceduralBuilding.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/ProceduralBuilding.cpp index 9756d2983..ffa0028af 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/ProceduralBuilding.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/ProceduralBuilding.cpp @@ -16,6 +16,7 @@ AProceduralBuilding::AProceduralBuilding() UStaticMeshComponent* StaticMeshComponent = CreateDefaultSubobject(TEXT("RootComponent")); RootComponent = StaticMeshComponent; + RootComponent->SetMobility(EComponentMobility::Static); } UHierarchicalInstancedStaticMeshComponent* AProceduralBuilding::GetHISMComp(