Got rid of static_path...was a bad idea

This commit is contained in:
Thomas FORGIONE
2015-06-25 16:51:47 +02:00
parent 8308ce5ab7
commit e915fb58e7
9 changed files with 23 additions and 30 deletions

View File

@@ -52,7 +52,7 @@ function init() {
// Capture of i
// I am pretty good
(function(i) {
loader.load(static_path + 'data/spheres/' + (i+1) + '.obj', function (object) {
loader.load('/static/data/spheres/' + (i+1) + '.obj', function (object) {
object.traverse(function (child) {
if (child instanceof THREE.Mesh ) {
child.material.color.setHex(0xff0000);