Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 126 bytes modified
parent
9bf6897b29
commit
e2b77539d4
|
@ -1236,6 +1236,12 @@ GameLib.CustomCode.prototype.restore = function() {
|
||||||
clone.backupMesh.updateInstance('visible');
|
clone.backupMesh.updateInstance('visible');
|
||||||
|
|
||||||
|
|
||||||
|
if (clone.mesh) {
|
||||||
|
clone.mesh.geometry = null;
|
||||||
|
clone.mesh.materials = null;
|
||||||
|
clone.mesh.remove();
|
||||||
|
}
|
||||||
|
|
||||||
clone.mesh = this.createGameMesh(this.materialBreadCorner);
|
clone.mesh = this.createGameMesh(this.materialBreadCorner);
|
||||||
|
|
||||||
clone.mesh.position.z = 5;
|
clone.mesh.position.z = 5;
|
||||||
|
|
Loading…
Reference in New Issue