Skip to content

Commit

Permalink
Reverting to Object.prototype = { pattern. Only using it on the metho…
Browse files Browse the repository at this point in the history
…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
mrdoob committed Mar 14, 2013
1 parent 1ce2b5b commit cc57273
Show file tree
Hide file tree
Showing 19 changed files with 542 additions and 468 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This code creates a scene, then creates a camera, adds the camera and cube to th
### Change log ###


2013 03 15 - **r57** (403,596 KB, gzip: 96,362 KB)
2013 03 15 - **r57** (403,818 KB, gzip: 96,416 KB)

* Added Renderer panel to the editor. ([mrdoob](http://github.com/mrdoob))
* Added support for custom attributes to `BufferGeometry`. ([zz85](http://github.com/zz85))
Expand Down
Loading

0 comments on commit cc57273

Please sign in to comment.