Skip to content

Commit

Permalink
fixed #176
Browse files Browse the repository at this point in the history
  • Loading branch information
keyemkey committed Jun 19, 2013
1 parent e9a6695 commit abad571
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ package awaybuilder.view.components.editors

private function forceUpdateHandler( event:Event ):void
{
trace( "forceUpdateHandler" );
validate( _data );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,11 @@
_selectedLightPicker = lightPickers.getItemAt(0) as AssetVO;
}
_lights = new ArrayCollection(lights);
if( _asset.light && _asset.lightPicker )
{
for each(var light:AssetVO in lights )
for each(var light:AssetVO in _lights )
{
if( light.equals( _asset.light ) ) _selectedLight = light;
}
Expand All @@ -206,23 +207,29 @@
}
else
{
_selectedLight = lights[0] as AssetVO;
_selectedLight = _lights.getItemAt(0) as AssetVO;
}
_shadowMethods = new ArrayCollection(shadowMehtods);
trace( "_shadowMethods", _shadowMethods );
if( _asset.shadowMethod && _asset.light && _asset.lightPicker )
{
for each(var method:AssetVO in shadowMehtods )
for each(var method:AssetVO in _shadowMethods )
{
if( method.equals( _asset.shadowMethod ) ) _selectedShadowMethod = method;
}
}
else
{
_selectedShadowMethod = shadowMehtods[0] as AssetVO;
_selectedShadowMethod = _shadowMethods.getItemAt(0) as AssetVO;
}
trace( "_selectedShadowMethod", _selectedShadowMethod );
// trace("shadowLightDropDownList.selectedItem ", shadowLightDropDownList.selectedItem );
_shadowMethods = new ArrayCollection(shadowMehtods);
_lights = new ArrayCollection(lights);
}
private function shadowMethodDropDownList_changeHandler(event:IndexChangeEvent):void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ package awaybuilder.view.mediators
var lightVO:LightVO = item as LightVO;
if( lightVO && lightVO.shadowMethods && lightVO.shadowMethods.length )
{
if( getAssetIsInList( asset, container.children.source ) ) return true;
if( getAssetIsInList( asset, lightVO.shadowMethods.source ) ) return true;
if( lightVO.shadowMapper.equals( asset ) ) return true;
}
var cameraVO:CameraVO = item as CameraVO;
Expand Down

0 comments on commit abad571

Please sign in to comment.