Skip to content

Commit f6320e0

Browse files
author
Léna Voinchet
committed
Delete only frustum with "camera frustums" button
1 parent 51a9c8c commit f6320e0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

js/scene/SceneManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ class SceneManager{
570570
const wallXPlane = new Plane(wallXNormal, -this.wallX.position.x);
571571
const wallYPlane = new Plane(wallYNormal, -this.wallY.position.z);
572572

573-
if(node.toggleFrustumOrNot && node.cameraAppear)
573+
if(node.cameraAppear)
574574
{
575575

576576
const floorRays = [];

js/scene/objects/sensors/Node.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ class Node{
173173
this.updateTransformation();
174174

175175
// Update visibility
176+
this.changeFrustumVisibility(this.toggleFrustumOrNot);
176177
this.changeVisibility(this.cameraAppear);
177178
}
178179

@@ -227,8 +228,6 @@ class Node{
227228
if (this.cameraAppear) {
228229
if (this.cameraPerspective) this.cameraPerspective.visible = visible;
229230
if (this.cameraPerspectiveHelper) this.cameraPerspectiveHelper.visible = visible;
230-
if (this.nameText) this.nameText.visible = visible;
231-
if (this.areaValueText) this.areaValueText.visible = visible && (this.coveredPointsAbove && this.coveredPointsAbove.length > 2);
232231
}
233232

234233
}

0 commit comments

Comments
 (0)