mirror of https://github.com/axmolengine/axmol.git
Merge pull request #13593 from jianglong0156/fixActionParamError
fix Action:Place, RotateTo param wrong number error
This commit is contained in:
commit
032bc590b7
|
@ -546,7 +546,7 @@ cc.Place.prototype._ctor = function(pos, y) {
|
|||
y = pos.y;
|
||||
pos = pos.x;
|
||||
}
|
||||
this.initWithPosition(pos, y);
|
||||
this.initWithPosition(cc.p(pos, y));
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -609,7 +609,7 @@ cc.RotateTo.prototype._ctor = cc.RotateBy.prototype._ctor = function(duration, d
|
|||
if (deltaAngleY !== undefined)
|
||||
this.initWithDuration(duration, deltaAngleX, deltaAngleY);
|
||||
else
|
||||
this.initWithDuration(duration, deltaAngleX);
|
||||
this.initWithDuration(duration, deltaAngleX, deltaAngleX);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue