Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed dragonbones not supporting multiple textures #3623

Merged
merged 2 commits into from Dec 12, 2018

Conversation

sunnylanwanjun
Copy link
Contributor

issue:https://github.com/cocos-creator/2d-tasks/issues/898#event-2020713305
forum:https://forum.cocos.com/t/dragonbones-2/70711

fix dragonbones use diff texture,only show one
shield spine and dragonbones blend

shield spine and dragonbones blend
@@ -80,6 +81,54 @@ let ArmatureDisplay = cc.Class({
serializable: false,
},

/**
* !#en specify the source Blend Factor, this will generate a custom material object, please pay attention to the memory cost.
* !#zh 指定原图的混合模式,这会克隆一个新的材质对象,注意这带来的
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注释按照实际功能修改一下

set: function(value) {
if (this._srcBlendFactor === value) return;
this._srcBlendFactor = value;
this._updateBlendFunc(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

变成只读吧,修改它没意义

* @example
* sprite.dstBlendFactor = cc.macro.BlendFactor.ONE;
*/
dstBlendFactor: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

* @example
* sprite.srcBlendFactor = cc.macro.BlendFactor.ONE;
*/
srcBlendFactor: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同 DragonBones

@pandamicro pandamicro changed the title fix dragonbones use diff texture,only show one Fixed dragonbones not supporting multiple textures Dec 12, 2018
@pandamicro pandamicro merged commit 0c7d282 into cocos:v2.0-release Dec 12, 2018
@sunnylanwanjun sunnylanwanjun deleted the fix-db-changetex branch February 19, 2019 02:00
minggo pushed a commit that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants