فهرست منبع

Material: Clean up. (#23438)

linbingquan 3 سال پیش
والد
کامیت
9dceefefa1
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/materials/Material.js

+ 3 - 3
src/materials/Material.js

@@ -160,9 +160,9 @@ class Material extends EventDispatcher {
 
 
 	toJSON( meta ) {
 	toJSON( meta ) {
 
 
-		const isRoot = ( meta === undefined || typeof meta === 'string' );
+		const isRootObject = ( meta === undefined || typeof meta === 'string' );
 
 
-		if ( isRoot ) {
+		if ( isRootObject ) {
 
 
 			meta = {
 			meta = {
 				textures: {},
 				textures: {},
@@ -370,7 +370,7 @@ class Material extends EventDispatcher {
 
 
 		}
 		}
 
 
-		if ( isRoot ) {
+		if ( isRootObject ) {
 
 
 			const textures = extractFromCache( meta.textures );
 			const textures = extractFromCache( meta.textures );
 			const images = extractFromCache( meta.images );
 			const images = extractFromCache( meta.images );