From fa8e390831302811c90af989556ad37d452df763 Mon Sep 17 00:00:00 2001 From: Donovan Hutchence Date: Tue, 21 May 2024 16:59:33 +0100 Subject: [PATCH 1/2] fix --- src/scene/gsplat/gsplat-data.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scene/gsplat/gsplat-data.js b/src/scene/gsplat/gsplat-data.js index 6fd6d412bf0..ace8f0783f7 100644 --- a/src/scene/gsplat/gsplat-data.js +++ b/src/scene/gsplat/gsplat-data.js @@ -655,7 +655,9 @@ class GSplatData { this.elements.forEach((element) => { element.properties.forEach((property) => { - property.storage = reorder(property.storage); + if (property) { + property.storage = reorder(property.storage); + } }); }); } From 0e65302b9a2683c2da723747ffd204b412ea5a66 Mon Sep 17 00:00:00 2001 From: Donovan Hutchence Date: Tue, 21 May 2024 17:25:50 +0100 Subject: [PATCH 2/2] fix the fix --- src/scene/gsplat/gsplat-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scene/gsplat/gsplat-data.js b/src/scene/gsplat/gsplat-data.js index ace8f0783f7..ea86eac3a81 100644 --- a/src/scene/gsplat/gsplat-data.js +++ b/src/scene/gsplat/gsplat-data.js @@ -655,7 +655,7 @@ class GSplatData { this.elements.forEach((element) => { element.properties.forEach((property) => { - if (property) { + if (property.storage) { property.storage = reorder(property.storage); } });