Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 228 bytes modified
parent
ee91f31d0b
commit
7a17759097
|
@ -1247,11 +1247,21 @@ GameLib.CustomCode.prototype.restore = function() {
|
|||
* --- works ---
|
||||
*/
|
||||
clone.mesh = clone.backupMesh;
|
||||
|
||||
var backupOrientation = clone.orientation;
|
||||
|
||||
if (clone.backupMesh.hasOwnProperty('orientation')) {
|
||||
clone.orientation = clone.backupMesh.orientation;
|
||||
}
|
||||
|
||||
clone.backupMesh = null;
|
||||
clone.mesh.visible = true;
|
||||
clone.mesh.updateInstance('visible');
|
||||
clone.applyToMesh();
|
||||
clone.backupMesh = clone.mesh;
|
||||
|
||||
clone.orientation = backupOrientation;
|
||||
|
||||
/**
|
||||
* --- end of works ---
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue