소스 검색

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