Closed genereddick closed 2 years ago
@genereddick, yes, you're right, that's a type-o, and if (idx <= 0)
should be if (idx < 0)
.
Thanks for reporting it!
Fixed with #279
Also fixed in the sibling Samples repo: https://github.com/microsoft/MixedReality-WorldLockingTools-Samples/pull/83
Many thanks again for pointing this out!
In the code in SpacePinBinder file, when you attempt to add a pin at runtime it will re-add the first item in the index:
But, in FindSpacePin, the first item in the list returns an index of 0
Which falls through the if statement and then gets added again to the list
I think this should just be <, rather than <=: