Skip to content

Commit 9a7d001

Browse files
committedApr 5, 2025·
Clean up.
1 parent 05b4f75 commit 9a7d001

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed
 

‎devtools/bridge.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ if (!window.__THREE_DEVTOOLS__) {
538538
console.log('DevTools: Setting visibility of', obj.type || obj.constructor.name, 'to', visible);
539539

540540
// Find the actual Three.js object using our observed scenes
541-
if (observedScenes && observedScenes.length > 0) {
541+
if (observedScenes.length > 0) {
542542
for (const scene of observedScenes) {
543543
let found = false;
544544
scene.traverse((object) => {

‎devtools/panel/panel.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,12 @@ function updateRendererProperties(renderer) {
129129
const label = rendererElement.querySelector('.label');
130130
if (label) {
131131
let detailsText = '';
132-
if (props) {
133-
const details = [`${props.width}x${props.height}`];
134-
if (props.info) {
135-
details.push(`${props.info.render.calls} calls`);
136-
details.push(`${props.info.render.triangles.toLocaleString()} tris`);
137-
}
138-
detailsText = `<span class="object-details">${details.join(' ・ ')}</span>`;
132+
const details = [`${props.width}x${props.height}`];
133+
if (props.info) {
134+
details.push(`${props.info.render.calls} calls`);
135+
details.push(`${props.info.render.triangles.toLocaleString()} tris`);
139136
}
137+
detailsText = `<span class="object-details">${details.join(' ・ ')}</span>`;
140138
label.innerHTML = `WebGLRenderer ${detailsText}`;
141139
}
142140

0 commit comments

Comments
 (0)
Please sign in to comment.