Skip to content

Commit

Permalink
Dim the gizmo when tool not active
Browse files Browse the repository at this point in the history
  • Loading branch information
glabute committed May 17, 2024
1 parent 4f9db39 commit 939d416
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ static void DrawGizmos(CinemachineSplineDollyLookAtTargets splineData, GizmoType
if (Selection.activeGameObject == splineData.gameObject && splineData.Targets.Count > 0
&& splineData.GetTargets(out var spline, out _) && spline.Spline != null)
{
Gizmos.color = CinemachineCorePrefs.BoundaryObjectGizmoColour.Value;
var c = CinemachineCorePrefs.BoundaryObjectGizmoColour.Value;
if (ToolManager.activeToolType != typeof(LookAtDataOnSplineTool))
c.a = 0.5f;
Gizmos.color = c;

var indexUnit = splineData.Targets.PathIndexUnit;
for (int i = 0; i < splineData.Targets.Count; i++)
Expand Down

0 comments on commit 939d416

Please sign in to comment.