Explorar el Código

Remove unnecessary object.userData check

Robert Long hace 6 años
padre
commit
310491179a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 ) {
 
-			if ( ! object.userData || Object.keys( object.userData ).length === 0 ) {
+			if ( Object.keys( object.userData ).length === 0 ) {
 
 				return;