Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverting to Object.prototype = { pattern. Only using it on the metho…
…ds that really need it. Misteriously when using the latest version of the lib on the project I'm working on I'm getting this error: > Uncaught TypeError: Object [object Object] has no method 'set' This is caused when THREE.UniformsLib.common.diffuse initialises a THREE.Color (THREE.Color.set() seems to be undefined then). For some reason this only happens when I load Box2D before three.js. If I load it after is all good. But this fixes the problem too. /ping @bhouston
- Loading branch information