Skip to content
This repository was archived by the owner on Dec 24, 2020. It is now read-only.

Commit 9408da4

Browse files
committed
Add Fixed Axis facing mode for particles
1 parent bb7e74a commit 9408da4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

FlaxEditor/Surface/Archetypes/ParticleModules.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ public enum ParticleSpriteFacingMode
6363
/// Particles will use the custom vector for facing.
6464
/// </summary>
6565
CustomFacingVector,
66+
67+
/// <summary>
68+
/// Particles will use the custom fixed axis for facing up.
69+
/// </summary>
70+
FixedAxis,
6671
}
6772

6873
/// <summary>
@@ -460,7 +465,9 @@ public override void OnValuesChanged()
460465

461466
private void UpdateInputBox()
462467
{
463-
GetBox(0).Enabled = (ParticleSpriteFacingMode)Values[2] == ParticleSpriteFacingMode.CustomFacingVector;
468+
var facingMode = (ParticleSpriteFacingMode)Values[2];
469+
GetBox(0).Enabled = facingMode == ParticleSpriteFacingMode.CustomFacingVector
470+
|| facingMode == ParticleSpriteFacingMode.FixedAxis;
464471
}
465472
}
466473

0 commit comments

Comments
 (0)