提交 ed7beaa1 编写于 作者: K Kai Salmen

Fix materialIndexLine debug printing in OBJLoader2Parser

上级 dcd1305b
......@@ -1012,7 +1012,12 @@ OBJLoader2Parser.prototype = {
if ( this.logging.enabled && this.logging.debug ) {
let materialIndexLine = ( selectedMaterialIndex === undefined || selectedMaterialIndex === null ) ? '' : '\n\t\tmaterialIndex: ' + selectedMaterialIndex;
let materialIndexLine = '';
if ( selectedMaterialIndex ) {
materialIndexLine = '\n\t\tmaterialIndex: ' + selectedMaterialIndex;
}
let createdReport = '\tOutput Object no.: ' + this.outputObjectCount +
'\n\t\tgroupName: ' + meshOutputGroup.groupName +
'\n\t\tIndex: ' + meshOutputGroup.index +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册