Fixed spot lights parsing from A3D

This commit is contained in:
Andrey Kopysov
2012-04-16 16:33:59 +06:00
parent e788766ee2
commit e80dfaa0c2

View File

@@ -426,7 +426,7 @@ package alternativa.engine3d.loaders {
for each (a3DSpotLight in a3d.spotLights) {
var resSpotLight:SpotLight = new SpotLight(a3DSpotLight.color, a3DSpotLight.attenuationBegin, a3DSpotLight.attenuationEnd, a3DSpotLight.hotspot, a3DSpotLight.falloff);
resSpotLight.intensity = a3DOmniLight.intensity;
resSpotLight.intensity = a3DSpotLight.intensity;
resSpotLight.visible = a3DSpotLight.visible;
resSpotLight.name = a3DSpotLight.name;
parents[resSpotLight] = a3DSpotLight.parentId;