Skip to content

Commit cc57273

Browse files
committed
Reverting to Object.prototype = { pattern. Only using it on the methods 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
1 parent 1ce2b5b commit cc57273

19 files changed

Lines changed: 542 additions & 468 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ This code creates a scene, then creates a camera, adds the camera and cube to th
6666
### Change log ###
6767

6868

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

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

0 commit comments

Comments
 (0)