mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 06:24:20 +02:00
make voxel editing work, even if the voxel-space is empty
This commit is contained in:
parent
f2d8c78a88
commit
b19517ace7
1 changed files with 0 additions and 3 deletions
|
@ -40,7 +40,6 @@ function mousePressEvent(event) {
|
|||
// or if we pick a non-PolyVox entity, we fall through to the next picking attempt.
|
||||
if (intersection.intersects) {
|
||||
if (attemptVoxelChange(intersection)) {
|
||||
print("here0");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -49,10 +48,8 @@ function mousePressEvent(event) {
|
|||
// bounding box, instead.
|
||||
intersection = Entities.findRayIntersection(pickRay, false); // bounding box picking
|
||||
if (intersection.intersects) {
|
||||
print("here1");
|
||||
attemptVoxelChange(intersection);
|
||||
}
|
||||
print("here2");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue