From 4061f9ec4f6f2d91b80a5dc23a3193c334bd4e4f Mon Sep 17 00:00:00 2001 From: "Theunis J. Botha" Date: Fri, 11 Nov 2016 10:33:49 +0100 Subject: [PATCH] fix constructor order --- src/game-lib-scene.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/game-lib-scene.js b/src/game-lib-scene.js index 90cd4be..f8d71ef 100644 --- a/src/game-lib-scene.js +++ b/src/game-lib-scene.js @@ -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(