Skip to content

Commit

Permalink
fix index change bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sucresk committed Aug 5, 2015
1 parent deed3aa commit e0287ee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
5 changes: 4 additions & 1 deletion src/dragonBones/fast/FastSlot.as
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ package dragonBones.fast
targetArmature.resetAnimation()
}
}

if (_isColorChanged)
{
updateDisplayColor(0, 0, 0, 0, 1, 1, 1, 1, true);
}
var slotIndex:int = getDisplayIndex();
removeDisplayFromContainer();
return slotIndex;
Expand Down
8 changes: 4 additions & 4 deletions src/dragonBones/objects/Object3DataParser.as
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,10 @@ package dragonBones.objects
colorTransform.greenOffset = int(colorTransformObject[ConstValues.A_GREEN_OFFSET]);
colorTransform.blueOffset = int(colorTransformObject[ConstValues.A_BLUE_OFFSET]);

colorTransform.alphaMultiplier = int(getNumber(colorTransformObject, ConstValues.A_ALPHA_MULTIPLIER,100)||100) * 0.01;
colorTransform.redMultiplier = int(getNumber(colorTransformObject,ConstValues.A_RED_MULTIPLIER,100)||100) * 0.01;
colorTransform.greenMultiplier = int(getNumber(colorTransformObject,ConstValues.A_GREEN_MULTIPLIER,100)||100) * 0.01;
colorTransform.blueMultiplier = int(getNumber(colorTransformObject,ConstValues.A_BLUE_MULTIPLIER,100)||100) * 0.01;
colorTransform.alphaMultiplier = int(getNumber(colorTransformObject, ConstValues.A_ALPHA_MULTIPLIER,100)) * 0.01;
colorTransform.redMultiplier = int(getNumber(colorTransformObject,ConstValues.A_RED_MULTIPLIER,100)) * 0.01;
colorTransform.greenMultiplier = int(getNumber(colorTransformObject,ConstValues.A_GREEN_MULTIPLIER,100)) * 0.01;
colorTransform.blueMultiplier = int(getNumber(colorTransformObject,ConstValues.A_BLUE_MULTIPLIER,100)) * 0.01;
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/dragonBones/objects/ObjectDataParser.as
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,10 @@
colorTransform.greenOffset = int(colorTransformObject[ConstValues.A_GREEN_OFFSET]);
colorTransform.blueOffset = int(colorTransformObject[ConstValues.A_BLUE_OFFSET]);

colorTransform.alphaMultiplier = int(getNumber(colorTransformObject, ConstValues.A_ALPHA_MULTIPLIER,100)||0) * 0.01;
colorTransform.redMultiplier = int(getNumber(colorTransformObject,ConstValues.A_RED_MULTIPLIER,100)||0) * 0.01;
colorTransform.greenMultiplier = int(getNumber(colorTransformObject,ConstValues.A_GREEN_MULTIPLIER,100)||0) * 0.01;
colorTransform.blueMultiplier = int(getNumber(colorTransformObject,ConstValues.A_BLUE_MULTIPLIER,100)||0) * 0.01;
colorTransform.alphaMultiplier = int(getNumber(colorTransformObject, ConstValues.A_ALPHA_MULTIPLIER,100)) * 0.01;
colorTransform.redMultiplier = int(getNumber(colorTransformObject,ConstValues.A_RED_MULTIPLIER,100)) * 0.01;
colorTransform.greenMultiplier = int(getNumber(colorTransformObject,ConstValues.A_GREEN_MULTIPLIER,100)) * 0.01;
colorTransform.blueMultiplier = int(getNumber(colorTransformObject,ConstValues.A_BLUE_MULTIPLIER,100)) * 0.01;
}
}
}
Expand Down

0 comments on commit e0287ee

Please sign in to comment.