make sure intersected entity is in the list of possible polyvoxes to adjust

This commit is contained in:
Seth Alves 2015-09-02 09:29:51 -07:00
parent 3963035599
commit f54d924f4a

View file

@ -405,6 +405,10 @@ function attemptVoxelChange(pickRayDir, intersection) {
var ids;
ids = Entities.findEntities(intersection.intersection, editSphereRadius + 1.0);
if (ids.indexOf(intersection.entityID) < 0) {
ids.push(intersection.entityID);
}
// print("ids = " + ids);
var success = false;