diff --git a/js/l3d/apps/prototype/interactive/main.js b/js/l3d/apps/prototype/interactive/main.js index 673f861..3b7d55c 100644 --- a/js/l3d/apps/prototype/interactive/main.js +++ b/js/l3d/apps/prototype/interactive/main.js @@ -111,8 +111,7 @@ function initCanvases() { function initModels() { // Init recommendations - // recommendations = initMainScene(camera1, scene, coins, clickableObjects); - recommendations = L3D.initWhomp(camera1, scene, coins, clickableObjects); + recommendations = initMainScene(camera1, scene, coins, clickableObjects); // init clickable objects var i; diff --git a/js/l3d/src/canvases/Previewer.js b/js/l3d/src/canvases/Previewer.js index 844db67..4f91bc6 100644 --- a/js/l3d/src/canvases/Previewer.js +++ b/js/l3d/src/canvases/Previewer.js @@ -142,6 +142,7 @@ L3D.Previewer.prototype.render = function(container_width, container_height) { */ L3D.Previewer.prototype.clear = function() { if (this.clearNeeded) { + console.log("Clear"); this.domElement.width = this.domElement.width; this.clearNeeded = false; } @@ -180,8 +181,12 @@ L3D.Previewer.prototype.setCamera = function(camera) { * @param {Number} y y coordinate of the mouse */ L3D.Previewer.prototype.setPosition = function(x, y) { - this.mouse.x = x; - this.mouse.y = y; + + if (!this.drawn) { + this.mouse.x = x; + this.mouse.y = y; + } + }; /**