mirror of
https://github.com/overte-org/overte.git
synced 2025-07-28 16:47:21 +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;
|
var ids;
|
||||||
|
|
||||||
ids = Entities.findEntities(intersection.intersection, editSphereRadius + 1.0);
|
ids = Entities.findEntities(intersection.intersection, editSphereRadius + 1.0);
|
||||||
|
if (ids.indexOf(intersection.entityID) < 0) {
|
||||||
|
ids.push(intersection.entityID);
|
||||||
|
}
|
||||||
|
|
||||||
// print("ids = " + ids);
|
// print("ids = " + ids);
|
||||||
|
|
||||||
var success = false;
|
var success = false;
|
||||||
|
|
Loading…
Reference in a new issue