fix missing fog
parent
d534f99f5e
commit
b0cb6db4a8
|
@ -69,7 +69,7 @@ GameLib.D3.API.Scene = function(
|
|||
this.images = images;
|
||||
|
||||
if (GameLib.Utils.UndefinedOrNull(fog)) {
|
||||
fog = null;
|
||||
fog = new GameLib.D3.API.Fog();
|
||||
}
|
||||
this.fog = fog;
|
||||
|
||||
|
|
|
@ -330,7 +330,11 @@ GameLib.D3.Geometry.Buffer.prototype.toApiObject = function() {
|
|||
this.drawRange.toApiObject(),
|
||||
this.groups.map(
|
||||
function(group){
|
||||
return group.toApiObject()
|
||||
if (group instanceof GameLib.Group) {
|
||||
return group.toApiObject();
|
||||
} else {
|
||||
return group;
|
||||
}
|
||||
}
|
||||
),
|
||||
null, //index,
|
||||
|
|
Loading…
Reference in New Issue