未验证 提交 03cdce01 编写于 作者: P Paul Masson 提交者: GitHub

Add error message

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