Skip to content

Commit 6b5e8bc

Browse files
committed
Merge pull request #1561 from pandamicro/develop
Fix armature setBlendFunc parameter inconsistency
2 parents 680aa0c + 44da257 commit 6b5e8bc

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

frameworks/cocos2d-html5

Submodule cocos2d-html5 updated from f1594e6 to f0311f2

frameworks/js-bindings/bindings/manual/ScriptingCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include <assert.h>
4040
#include <memory>
4141

42-
#define ENGINE_VERSION "Cocos2d-JS v3.3"
42+
#define ENGINE_VERSION "Cocos2d-JS v3.4 Beta0"
4343

4444
void js_log(const char *format, ...);
4545

frameworks/js-bindings/bindings/script/jsb_cocos2d.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// CCConfig.js
2828
//
29-
cc.ENGINE_VERSION = "Cocos2d-JS v3.3";
29+
cc.ENGINE_VERSION = "Cocos2d-JS v3.4 Beta0";
3030

3131
cc.FIX_ARTIFACTS_BY_STRECHING_TEXEL = 0;
3232
cc.DIRECTOR_STATS_POSITION = {x: 0, y: 0};
@@ -2172,7 +2172,6 @@ var templateSetBlendFunc = function(src, dst) {
21722172
else
21732173
blendf = {src: src, dst: dst};
21742174
this._setBlendFunc(blendf);
2175-
var b = this.getBlendFunc();
21762175
};
21772176
for (var i = 0, l = protoHasBlend.length; i < l; i++) {
21782177
var proto = protoHasBlend[i];

frameworks/js-bindings/bindings/script/studio/jsb_cocos2d_studio.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ if(ccs.Armature){
6363
ccs.Armature.extend = cc.Class.extend;
6464
}
6565

66+
ccs.Armature.prototype._setBlendFunc = ccs.Armature.prototype.setBlendFunc;
67+
ccs.Armature.prototype.setBlendFunc = templateSetBlendFunc;
68+
6669

6770
ccs.sendEvent = function (event) {
6871
var triggerObjArr = ccs.triggerManager.get(event);

0 commit comments

Comments
 (0)