2
0
Эх сурвалжийг харах

Remove unnecessary object.userData check

Robert Long 6 жил өмнө
parent
commit
310491179a

+ 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;