فهرست منبع

Update babylon.simpleMaterial.ts

David Catuhe 9 سال پیش
والد
کامیت
d0f468860e
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      materialsLibrary/materials/simple/babylon.simpleMaterial.ts

+ 5 - 5
materialsLibrary/materials/simple/babylon.simpleMaterial.ts

@@ -495,18 +495,18 @@ module BABYLON {
         }
 
         public clone(name: string): SimpleMaterial {
-            var newStandardMaterial = new SimpleMaterial(name, this.getScene());
+            var newMaterial = new SimpleMaterial(name, this.getScene());
 
             // Base material
-            this.copyTo(newStandardMaterial);
+            this.copyTo(newMaterial);
 
             // Simple material
             if (this.diffuseTexture && this.diffuseTexture.clone) {
-                newStandardMaterial.diffuseTexture = this.diffuseTexture.clone();
+                newMaterial.diffuseTexture = this.diffuseTexture.clone();
             }
 
-            newStandardMaterial.diffuseColor = this.diffuseColor.clone();
-            return newStandardMaterial;
+            newMaterial.diffuseColor = this.diffuseColor.clone();
+            return newMaterial;
         }
     }
 }