mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
make sure intersected entity is in the list of possible polyvoxes to adjust
This commit is contained in:
parent
3963035599
commit
f54d924f4a
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue