Skip to content

Commit 1e556a8

Browse files
committed
Revert unintended change (#8047)
1 parent c66d173 commit 1e556a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/scene/gsplat/gsplat-data.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ class GSplatData {
130130

131131
// access a named property
132132
getProp(name, elementName = 'vertex') {
133-
const el = this.getElement(elementName);
134-
const storage = el && el.properties.find(p => p.name === name)?.storage;
135-
return /** @type {Float32Array} */ (storage ?? new Float32Array(0));
133+
return this.getElement(elementName)?.properties.find(p => p.name === name)?.storage;
136134
}
137135

138136
// access the named element

0 commit comments

Comments
 (0)