diff --git a/js/cells/supercells/GIKSuperCell.js b/js/cells/supercells/GIKSuperCell.js index 3e90ad33926786f86ba73e61cffe573f8dd80175..9dd68f014e4496a6c27201723670262c6f0d146d 100644 --- a/js/cells/supercells/GIKSuperCell.js +++ b/js/cells/supercells/GIKSuperCell.js @@ -70,7 +70,7 @@ GIKSuperCell.prototype._buildWireframe = function(mesh){ }; GIKSuperCell.prototype.getMaterial = function(){ - return allGIKMaterials[globals.lattice.get("materialType")]; + return allGIKMaterials[this.material]; }; GIKSuperCell.prototype.setMode = function(mode){