mrdoob/three.js — pull request #4183 by MJCD- (2013-12-06 04:25:07+00:00)
Title: Scene bool params allowed through constructor

Apologies, first github commit - so accidentally closed the previous not realising I could update it.

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 closure!

Not sure how the rest of the engine would handle having materials added at this stage, so left it for now.