Skip to content

Commit

Permalink
update version to 2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Chenguang Liu committed Dec 4, 2013
2 parents 50243b9 + 3edd4bb commit 9a4b560
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/dragonBones/core/DragonBones.as
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package dragonBones.core
public final class DragonBones
{
public static const DATA_VERSION:String = "2.3";
public static const VERSION:String = "2.4";
public static const VERSION_NUMBER:int = 2400;
public static const VERSION:String = "2.4.1";
public static const VERSION_NUMBER:int = 2410;

public function DragonBones()
{
Expand Down
6 changes: 5 additions & 1 deletion src/dragonBones/display/StarlingDisplayBridge.as
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
}
public function set display(value:Object):void
{
/*
if (_display is Image && value is Image)
{
var from:Image = _display as Image;
Expand All @@ -63,6 +64,7 @@
from.readjustSize();
return;
}
*/

if (_display == value)
{
Expand All @@ -78,13 +80,15 @@
}
removeDisplay();
}
/*
else if(value is Image && !_imageBackup)
{
_imageBackup = value as Image;
_textureBackup = _imageBackup.texture;
_pivotXBackup = _imageBackup.pivotX;
_pivotYBackup = _imageBackup.pivotY;
}
*/
_display = value;
addDisplay(parent, index);
}
Expand Down Expand Up @@ -198,4 +202,4 @@
}
}
}
}
}
22 changes: 21 additions & 1 deletion src/dragonBones/factorys/BaseFactory.as
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,12 @@ package dragonBones.factorys
}
}
}

var armatureDataCopy:ArmatureData = data.getArmatureData(animationName);
if(armatureDataCopy)
{
var skinDataCopy:SkinData = armatureDataCopy.getSkinData("");
}
}

if(animationArmatureData)
Expand Down Expand Up @@ -367,7 +373,21 @@ package dragonBones.factorys
switch(displayData.type)
{
case DisplayData.ARMATURE:
childArmature = buildArmature(displayData.name, null, _currentDataName, _currentTextureAtlasName);

if(skinDataCopy)
{
var slotDataCopy:SlotData = skinDataCopy.getSlotData(slotData.name);
if(slotDataCopy)
{
var displayDataCopy:DisplayData = slotDataCopy.displayDataList[i];
}
}
else
{
displayDataCopy = null;
}

childArmature = buildArmature(displayData.name, displayDataCopy?displayDataCopy.name:null, _currentDataName, _currentTextureAtlasName);
if(childArmature)
{
helpArray[i] = childArmature;
Expand Down

0 comments on commit 9a4b560

Please sign in to comment.