fix constructor order

beta.r3js.org
Theunis J. Botha 2016-11-11 10:33:49 +01:00
parent 291fb7e023
commit 4061f9ec4f
1 changed files with 7 additions and 2 deletions

View File

@ -305,6 +305,10 @@ GameLib.D3.Scene.LoadSceneFromApi = function(
var entities = [];
var worlds = [];
var components = [];
if (scene.worlds && scene.worlds.length > 0) {
console.warn('Implement physics worlds code here');
//TODO: physics world code here
@ -394,10 +398,11 @@ GameLib.D3.Scene.LoadSceneFromApi = function(
),
scene.parentSceneId,
lights3d,
worlds,
entities,
uploadUrl,
progressCallback,
uploadUrl
uploadUrl,
components
);
GameLib.D3.Scene.LoadScene(