Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: ignore empty descendants in parent scale audit (#4629)
[._.]/ Adam Eivy63c144ea97f7
diff --git a/server/lib/threejsModelPhysicalAudit.js b/server/lib/threejsModelPhysicalAudit.jsindex 6cb52d19f6..ce855d9937 100644--- a/server/lib/threejsModelPhysicalAudit.js+++ b/server/lib/threejsModelPhysicalAudit.js@@ -348,7 +348,9 @@ const collectNonReliefDescendants = (part) => {const walk = (children) => {for (const child of children || []) {if (child.explodeWithParent === true) continue;- descendants.push({ id: child.id, name: child.name || child.id });+ if (child.geometry) {+ descendants.push({ id: child.id, name: child.name || child.id });+ }walk(child.children);}};diff --git a/server/lib/threejsModelPhysicalAudit.test.js b/server/lib/threejsModelPhysicalAudit.test.jsindex 2ec7ae971f..51d1eecc73 100644--- a/server/lib/threejsModelPhysicalAudit.test.js+++ b/server/lib/threejsModelPhysicalAudit.test.js@@ -110,6 +110,34 @@ describe('threejsModelPhysicalAudit', () => {expect(res.findings.filter((finding) => finding.code === 'nonuniform-parent-scale')).toHaveLength(0);});+ it('traverses empty organizational groups but reports only geometry-bearing descendants', () => {+ const res = evaluateThreejsPhysicalAudit({+ name: 'Organizational Group Spec',+ parts: [{+ id: 'body',+ name: 'Body',+ geometry: { type: 'box', width: 2, height: 1, depth: 1 },+ scale: [3, 1, 0.2],+ children: [{+ id: 'rig',+ name: 'Rig',+ children: [{+ id: 'head',+ name: 'Head',+ geometry: { type: 'sphere', radius: 0.5 },+ }],+ }],+ }],+ });++ const finding = res.findings.find((item) => item.code === 'nonuniform-parent-scale');+ expect(finding).toMatchObject({+ partIds: ['body', 'head'],+ affectedDescendantNames: ['Head'],+ });+ expect(finding.message).not.toContain('Rig');+ });+it('checks animated scale channel endpoints against nested parts', () => {const res = evaluateThreejsPhysicalAudit({name: 'Animated Scale Spec',