Parcourir la source

Remove unnecessary object.userData check

Robert Long il y a 6 ans
Parent
commit
310491179a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;