From 7a177590976e888058b710ccd2ee69fcf533dd9f Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 24 Mar 2018 13:31:51 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 228 bytes modified --- 21g30t1e75.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/21g30t1e75.js b/21g30t1e75.js index 43af194..170d9a0 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -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 --- */