Skip to content

Commit

Permalink
Merge pull request #3 from blake-education/apharo/remove-blend-mode
Browse files Browse the repository at this point in the history
apharo/remove blend mode
  • Loading branch information
asppsa authored Aug 6, 2024
2 parents b90872c + e3713b8 commit fc3fa20
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blakeelearning/dragonbones-createjs",
"version": "1.0.0",
"version": "1.0.1",
"description": "dragonbonesjs with patches and createjs support",
"homepage": "https://github.com/blake-education/dragonBones-createjs",
"license": "MIT",
Expand Down
27 changes: 0 additions & 27 deletions src/dragonBones.js
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,6 @@ var dragonBones;
function SlotData() {
this._displayDataList = [];
this.zOrder = 0;
this.blendMode = "normal";
}
SlotData.prototype.getDisplayDataList = function () {
return this._displayDataList;
Expand Down Expand Up @@ -2055,11 +2054,6 @@ var dragonBones;
slotData.parent = slotObject[utils.ConstValues.A_PARENT];
slotData.zOrder = Number(slotObject[utils.ConstValues.A_Z_ORDER]);

slotData.blendMode = slotObject[utils.ConstValues.A_BLENDMODE];
if (!slotData.blendMode) {
slotData.blendMode = "normal";
}

var displayObjectList = slotObject[utils.ConstValues.DISPLAY];
for (var index in displayObjectList) {
if (!displayObjectList.hasOwnProperty(index)) continue;
Expand Down Expand Up @@ -2386,7 +2380,6 @@ var dragonBones;
displayDataList = slotData.getDisplayDataList();
slot = this._generateSlot();
slot.name = slotData.name;
slot._blendMode = slotData.blendMode;
slot._originZOrder = slotData.zOrder;
slot._dislayDataList = displayDataList;

Expand Down Expand Up @@ -2508,7 +2501,6 @@ var dragonBones;
ConstValues.A_TWEEN_ROTATE = "tweenRotate";
ConstValues.A_DISPLAY_INDEX = "displayIndex";
ConstValues.A_Z_ORDER = "z";
ConstValues.A_BLENDMODE = "blendMode";
ConstValues.A_WIDTH = "width";
ConstValues.A_HEIGHT = "height";
ConstValues.A_SCALE_MODE = "scaleMode";
Expand Down Expand Up @@ -2897,9 +2889,6 @@ var dragonBones;

this._isDisplayOnStage = false;
this._isHideDisplay = false;

this._blendMode = "normal";
this._displayBridge.updateBlendMode(this._blendMode);
}
Slot.prototype.getZOrder = function () {
return this._originZOrder + this._tweenZorder + this._offsetZOrder;
Expand All @@ -2926,19 +2915,6 @@ var dragonBones;
this._setDisplay(value);
};

Slot.prototype.getBlendMode = function () {
return this._blendMode;
};

Slot.prototype.setBlendMode = function (value) {
if (this._blendMode != value) {
this._blendMode = value;
if (this._displayBridge.getDisplay()) {
this._displayBridge.updateBlendMode(this._blendMode);
}
}
};

Slot.prototype.getChildArmature = function () {
var display = this._displayList[this._displayIndex];
if (display instanceof Armature) {
Expand Down Expand Up @@ -2983,9 +2959,6 @@ var dragonBones;
}

this.updateChildArmatureAnimation();
if (display) {
this._displayBridge.updateBlendMode(this._blendMode);
}

if (!this._isHideDisplay && this._displayBridge.getDisplay()) {
this._isDisplayOnStage = true;
Expand Down

0 comments on commit fc3fa20

Please sign in to comment.