We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c66d173 commit 1e556a8Copy full SHA for 1e556a8
src/scene/gsplat/gsplat-data.js
@@ -130,9 +130,7 @@ class GSplatData {
130
131
// access a named property
132
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));
+ return this.getElement(elementName)?.properties.find(p => p.name === name)?.storage;
136
}
137
138
// access the named element
0 commit comments