Skip to content

Commit 6b313e6

Browse files
RenderObject: Guard against undefined geometry attribute in getAttributes() (#33460)
1 parent c5ef44e commit 6b313e6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/renderers/common/RenderObject.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,12 @@ class RenderObject {
511511

512512
// geometry attribute
513513
attribute = geometry.getAttribute( nodeAttribute.name );
514-
attributesId[ nodeAttribute.name ] = attribute.id;
514+
515+
if ( attribute !== undefined ) {
516+
517+
attributesId[ nodeAttribute.name ] = attribute.id;
518+
519+
}
515520

516521
}
517522

0 commit comments

Comments
 (0)