mrdoob/three.js — pull request #4184 by MJCD- (2013-12-06 04:40:23+00:00)
Title: Dev

Note: Sorry for the previous 2 pull requests - very new to github and was having some difficulty!

Allows autoUpdate and matrixAutoUpdate to be passed in at construction time rather than requiring a separate call - this allows the full construction of the scene under one call, which is useful from within an object:

var a = { Scene: new THREE.Scene() }; a.Scene.autoUpdate = false;

.. becomes..

var a = { Scene: new THREE.Scene({autoUpdate: true}) };

.. which keeps things tidy when instantiating all graphics resources in one object definition or any other inline purpose.

I did not know how the other parts would react to having materials passed in as well, so I did not touch them.