Просмотр исходного кода

RenderObject: Guard against undefined geometry attribute in getAttributes() (#33460)

Renaud Rohlinger 1 месяц назад
Родитель
Сommit
6b313e66a5
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      src/renderers/common/RenderObject.js

+ 6 - 1
src/renderers/common/RenderObject.js

@@ -511,7 +511,12 @@ class RenderObject {
 
 				// geometry attribute
 				attribute = geometry.getAttribute( nodeAttribute.name );
-				attributesId[ nodeAttribute.name ] = attribute.id;
+
+				if ( attribute !== undefined ) {
+
+					attributesId[ nodeAttribute.name ] = attribute.id;
+
+				}
 
 			}
 

粤ICP备19079148号