diff --git a/src/Animation/AnimationManager.js b/src/Animation/AnimationManager.js index 8cc24382..7aaa5b6a 100755 --- a/src/Animation/AnimationManager.js +++ b/src/Animation/AnimationManager.js @@ -1,4 +1,4 @@ -var threebox = require('../Threebox.js'); +var threebox = require('../threebox.js'); var utils = require("../utils/utils.js"); var validate = require("../utils/validate.js"); diff --git a/src/objects/objects.js b/src/objects/objects.js index b364f858..a42e0bfa 100644 --- a/src/objects/objects.js +++ b/src/objects/objects.js @@ -1,5 +1,6 @@ var utils = require("../utils/utils.js"); var material = require("../utils/material.js"); +var THREE = require("../three.js"); const AnimationManager = require("../animation/AnimationManager.js"); @@ -41,11 +42,11 @@ Objects.prototype = { }, - _addMethods: function(obj, static){ + _addMethods: function(obj, fixed){ var root = this; - if (static) { + if (fixed) { } @@ -93,7 +94,7 @@ Objects.prototype = { obj.add = function(){ root.world.add(obj); - if (!static) obj.set({position:obj.coordinates}); + if (!fixed) obj.set({position:obj.coordinates}); return obj; } diff --git a/src/utils/material.js b/src/utils/material.js index 72d3d140..1f0dfc8d 100644 --- a/src/utils/material.js +++ b/src/utils/material.js @@ -5,7 +5,7 @@ // - specify a `material` string, `color`, and/or `opacity` as modifications of the default material // - provide none of these parameters, to use the default material -var utils = require("../Utils/Utils.js"); +var utils = require("./utils.js"); var THREE = require("../three.js"); var defaults = {