Skip to content

Commit

Permalink
Fixed drag and drop waypoint transparency bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibom committed May 18, 2017
1 parent 534ae2f commit dc2e0dd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ private void MoveObject(GameObject obj)
/// <param name="value">Alpha value 0 to 1</param>
private void SetAlpha(float value)
{
if (go.GetComponent<WayPoint>() != null)
{
return; // Don't do anything if its a waypoint.
}
MeshRenderer[] allParts = go.GetComponentsInChildren<MeshRenderer>();
foreach (MeshRenderer o in allParts)
{
Expand Down

0 comments on commit dc2e0dd

Please sign in to comment.