backward compatible with no lights
parent
27ded72d09
commit
74098b062d
|
@ -135,6 +135,7 @@ GameLib.D3.Scene.LoadSceneFromApi = function(
|
|||
|
||||
var lights3d = [];
|
||||
|
||||
if (scene.lights && scene.lights.length > 0) {
|
||||
for (var l = 0; l < scene.lights.length; l++) {
|
||||
|
||||
var light = scene.lights[l];
|
||||
|
@ -185,6 +186,7 @@ GameLib.D3.Scene.LoadSceneFromApi = function(
|
|||
|
||||
lights3d.push(light3d);
|
||||
}
|
||||
}
|
||||
|
||||
var scene3d = new GameLib.D3.Scene(
|
||||
scene._id || scene.id,
|
||||
|
|
Loading…
Reference in New Issue