Skip to content

Commit

Permalink
Update XMLDataProxy.as
Browse files Browse the repository at this point in the history
fix change texture path bug.
  • Loading branch information
akdcl committed Oct 11, 2013
1 parent b44aa9b commit 2c16a62
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/model/XMLDataProxy.as
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,13 @@ package model
{
for each(var displayXML:XML in getDisplayXMLList())
{
var subTextureName:String = displayXML.@[ConstValues.A_NAME];
subTextureName = subTextureName.split("/").join("-");
displayXML.@[ConstValues.A_NAME] = subTextureName;
if(displayXML.@[ConstValues.A_TYPE] == DisplayData.IMAGE)
{
var subTextureName:String = displayXML.@[ConstValues.A_NAME];

subTextureName = subTextureName.split("/").join("-");
displayXML.@[ConstValues.A_NAME] = subTextureName;
}
}

for each(var subTextureXML:XML in getSubTextureXMLList())
Expand Down Expand Up @@ -682,4 +686,4 @@ package model
return xml;
}
}
}
}

0 comments on commit 2c16a62

Please sign in to comment.