Browse files

fix(Pointers): ensure visible renderers list is cleared correctly

The `makeRendererVisible` list was being cleared during a loop within
the loop so it wasn't being cleared correctly.

The better approach is to simply clear the entire list after the loop
is done.
  • Loading branch information...
thestonefox committed Oct 24, 2017
1 parent 8fe5e72 commit 2ede03ff0afdc296787b3ac2c56426c8c82a5a60
Showing with 1 addition and 1 deletion.
  1. +1 −1 Assets/VRTK/Scripts/Pointers/PointerRenderers/VRTK_BasePointerRenderer.cs
@@ -411,8 +411,8 @@ protected virtual void MakeRenderersVisible()
for (int i = 0; i < makeRendererVisible.Count; i++)
ToggleRendererVisibility(makeRendererVisible[i], true);
protected virtual void ToggleRendererVisibility(GameObject givenObject, bool state)

0 comments on commit 2ede03f

Please sign in to comment.