未验证 提交 9051b685 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #14105 from paulmasson/patch-4

Add error message for case not handled in DirectGeometry
......@@ -140,6 +140,12 @@ Object.assign( DirectGeometry.prototype, {
//
if ( faces.length === 0 ) {
console.error( 'THREE.DirectGeometry: Faceless geometries are not supported.' );
}
for ( var i = 0; i < faces.length; i ++ ) {
var face = faces[ i ];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册