Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for cooked/packaged builds #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ void ASplineActor::BeginPlay()
{
Super::BeginPlay();

CreateSplineMeshComponents();
}

// Called every frame
Expand All @@ -37,7 +38,12 @@ void ASplineActor::Tick(float DeltaTime)
void ASplineActor::OnConstruction(const FTransform& Transform)
{
Super::OnConstruction(Transform);

CreateSplineMeshComponents();
}

void ASplineActor::CreateSplineMeshComponents()
{
if(SplineComponent && SplineMeshMap.Num() > 0)
{
// lookup all pertinent values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class UE4FUNDAMENTALS12_API ASplineActor : public AActor
ASplineActor();

void OnConstruction(const FTransform& Transform) override;
void CreateSplineMeshComponents();

protected:
// Called when the game starts or when spawned
Expand Down