Skip to content

Commit

Permalink
#3 Fixed incorrect ribbon color index
Browse files Browse the repository at this point in the history
  • Loading branch information
SourySK committed Jun 30, 2021
1 parent 382ce3d commit 81c3ba6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -421,7 +421,7 @@ void UNiagaraUIComponent::AddRibbonRendererData(SNiagaraUISystemWidget* NiagaraW
FVector2D CurrentToNextVector = NextPosition - CurrentPosition;
const float CurrentToNextSize = CurrentToNextVector.Size();
CurrentWidth = GetParticleWidth(CurrentDataIndex) * ScaleFactor;
FColor CurrentColor = GetParticleColor(CurrentIndex).ToFColor(true);
FColor CurrentColor = GetParticleColor(CurrentDataIndex).ToFColor(true);

// Normalize CurrToNextVec
CurrentToNextVector *= 1.f / CurrentToNextSize;
Expand Down

0 comments on commit 81c3ba6

Please sign in to comment.