diff --git a/js/ProgressiveLoaderGeometry.js b/js/ProgressiveLoaderGeometry.js index c912473..cb680fb 100644 --- a/js/ProgressiveLoaderGeometry.js +++ b/js/ProgressiveLoaderGeometry.js @@ -354,6 +354,11 @@ ProgressiveLoaderGeometry.prototype.initIOCallbacks = function() { this.socket.on('disconnect', function() { console.log('Finished !'); + setTimeout(function() { + self.meshes.forEach(function(obj) { + obj.geometry.computeBoundingSphere(); + }); + }, 0); self.finished = true; }); } diff --git a/package.json b/package.json index a7ca26e..5df8f85 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "cookie-parser": "1.3.4", "cookie-session": "1.1.0", "socket.io": "1.3.5", - "sleep": "2.0.0" + "sleep": "2.0.0", + "serve-favicon": "2.3.0" }, "repository": { "type": "git", diff --git a/server.js b/server.js index 41e37b5..1226409 100644 --- a/server.js +++ b/server.js @@ -3,6 +3,8 @@ var express = require('express'); var jade = require('jade'); var pg = require('pg'); +var favicon = require('serve-favicon'); + // secret variables var secret = require('./private'); @@ -65,6 +67,9 @@ require('./lib/posts')(app, { verbose: isDev }); // Static files app.use('/static', express.static('static')); +// Favicon +app.use(favicon(__dirname + '/static/ico/favicon.ico')); + // When error raised app.use(function(err, req, res, next) { if (err.status === 404) { diff --git a/static/ico/favicon.ico b/static/ico/favicon.ico new file mode 100644 index 0000000..312591b Binary files /dev/null and b/static/ico/favicon.ico differ