Skip to content

Commit 312036e

Browse files
committed
Removed some extra checks that compare set and setting the visibility in SetVisibility to make things easier to read.
1 parent 60b7f3d commit 312036e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Assets/HoloToolkit/Input/Scripts/Cursor/InteractiveMeshCursor.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,12 @@ public override void SetVisiblity(bool visible)
152152
base.SetVisiblity(visible);
153153

154154
mIsVisible = visible;
155+
ElementVisibility(visible);
155156

156157
if (visible)
157158
{
158-
if (Light != null)
159-
{
160-
Light.SetActive(visible);
161-
}
162-
163159
OnCursorStateChange(CursorState);
164160
}
165-
else
166-
{
167-
ElementVisibility(visible);
168-
}
169161
}
170162

171163
/// <summary>

0 commit comments

Comments
 (0)