浏览代码

Remove unnecessary object.userData check

Robert Long 6 年之前
父节点
当前提交
310491179a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/exporters/GLTFExporter.js

+ 1 - 1
examples/js/exporters/GLTFExporter.js

@@ -336,7 +336,7 @@ THREE.GLTFExporter.prototype = {
 		 */
 		 */
 		function serializeUserData( object, gltfProperty ) {
 		function serializeUserData( object, gltfProperty ) {
 
 
-			if ( ! object.userData || Object.keys( object.userData ).length === 0 ) {
+			if ( Object.keys( object.userData ).length === 0 ) {
 
 
 				return;
 				return;