Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 228 bytes modified

beta.r3js.org
-=yb4f310 2018-03-24 13:31:51 +01:00
parent ee91f31d0b
commit 7a17759097
1 changed files with 10 additions and 0 deletions

View File

@ -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 ---
*/