Skip to content

Commit

Permalink
Fixed compile error in non-editor builds
Browse files Browse the repository at this point in the history
  • Loading branch information
juddc committed Sep 1, 2014
1 parent 3644c5c commit 42d5548
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/RoadTools/Private/Road.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ARoad::ARoad(const class FPostConstructInitializeProperties& PCIP)
}


#if WITH_EDITOR
void ARoad::PostEditMove(bool bFinished)
{
// this event is the only indication the spline component gives us that anything has changed,
Expand All @@ -37,6 +38,7 @@ void ARoad::PostEditMove(bool bFinished)
}
Super::PostEditMove(bFinished);
}
#endif


void ARoad::OnConstruction(const FTransform& Transform)
Expand Down
2 changes: 2 additions & 0 deletions Source/RoadTools/Public/Road.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ class ARoad : public AActor
/** rebuild SplineMeshComponents on construction */
virtual void OnConstruction(const FTransform& transform) override;

#if WITH_EDITOR
/** force OnConstruction to run again when the spline is edited */
virtual void PostEditMove(bool bFinished) override;
#endif

FVector GetLocalTangentAtDistanceAlongSpline(float Distance);

Expand Down

0 comments on commit 42d5548

Please sign in to comment.