Skip to content

Commit

Permalink
minor update for animators
Browse files Browse the repository at this point in the history
  • Loading branch information
keyemkey committed Jun 19, 2013
1 parent abad571 commit f401a89
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
12 changes: 12 additions & 0 deletions awaybuilder-core/src/awaybuilder/model/SmartFactoryModelBase.as
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -911,6 +911,18 @@ package awaybuilder.model
} }
asset.subMeshes.addItem( sm ); asset.subMeshes.addItem( sm );
} }

// animators loaded not from animationSet, so animationSets know nothing about them directly
if( asset.animator )
{
var alreadyAdded:Boolean = false;
for each( var animator:AnimatorVO in asset.animator.animationSet.animators )
{
if( animator.equals( asset.animator ) ) alreadyAdded = true;
}
if( !alreadyAdded ) asset.animator.animationSet.animators.addItem( asset.animator );
}

return asset; return asset;
} }
private function fillContainer( asset:ContainerVO, item:ObjectContainer3D ):ContainerVO private function fillContainer( asset:ContainerVO, item:ObjectContainer3D ):ContainerVO
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ package awaybuilder.view.components.controls.tree
var children:ArrayCollection = ChildCollectionCache[node]; var children:ArrayCollection = ChildCollectionCache[node];
if( !children ) if( !children )
{ {
trace( "createChildren for " + node );
children = new ArrayCollection(); children = new ArrayCollection();
ChildCollectionCache[node] = children; ChildCollectionCache[node] = children;
} }
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -212,9 +212,6 @@
_shadowMethods = new ArrayCollection(shadowMehtods); _shadowMethods = new ArrayCollection(shadowMehtods);
trace( "_shadowMethods", _shadowMethods );
if( _asset.shadowMethod && _asset.light && _asset.lightPicker ) if( _asset.shadowMethod && _asset.light && _asset.lightPicker )
{ {
for each(var method:AssetVO in _shadowMethods ) for each(var method:AssetVO in _shadowMethods )
Expand All @@ -226,10 +223,6 @@
{ {
_selectedShadowMethod = _shadowMethods.getItemAt(0) as AssetVO; _selectedShadowMethod = _shadowMethods.getItemAt(0) as AssetVO;
} }
trace( "_selectedShadowMethod", _selectedShadowMethod );
// trace("shadowLightDropDownList.selectedItem ", shadowLightDropDownList.selectedItem );
} }
private function shadowMethodDropDownList_changeHandler(event:IndexChangeEvent):void private function shadowMethodDropDownList_changeHandler(event:IndexChangeEvent):void
Expand Down

0 comments on commit f401a89

Please sign in to comment.