make sure theres something on the blacklist

This commit is contained in:
James B. Pollack 2015-12-27 12:47:56 -08:00
parent 546e908633
commit 0e30393c81

View file

@ -778,11 +778,10 @@ function MyController(hand) {
var intersection;
if(USE_BLACKLIST===true){
intersection = Entities.findRayIntersection(pickRay, true, [], blacklist);
}
else{
intersection = Entities.findRayIntersection(pickRayBacked, true);
if (USE_BLACKLIST === true && blacklist.length !== 0) {
intersection = Entities.findRayIntersection(pickRay, true, [], blacklist);
} else {
intersection = Entities.findRayIntersection(pickRayBacked, true);
}
if (intersection.intersects) {