Merge pull request #2485 from pandamicro/next

Fix bug reported from ye man ren
This commit is contained in:
pandamicro
2018-03-30 14:13:54 +08:00
committed by GitHub
5 changed files with 9996 additions and 9987 deletions
-1
View File
@@ -342,7 +342,6 @@ var Label = cc.Class({
if (value && this._isSystemFontUsed)
this._isSystemFontUsed = false;
if ( typeof value === 'string' ) {
cc.warnID(4000);
}
+4
View File
@@ -65,6 +65,10 @@ var pool = new js.Pool(function (node) {
if (CC_DEV) {
cc.assert(!node._parent, 'Recycling node\'s parent should be null!');
}
let Flags = cc.Object.Flags;
if (node._objFlags & Flags.Destroyed || node._objFlags & Flags.Destroying) {
return false;
}
if (node.getComponent(cc.LabelOutline)) {
return false;
}
+4 -4
View File
@@ -14600,7 +14600,7 @@ var SpriteMaterial = (function (Material$$1) {
};
SpriteMaterial.prototype.clone = function clone () {
var copy = new SpriteMaterial(values);
var copy = new SpriteMaterial();
copy.texture = this.texture;
copy.useTexture = this.useTexture;
copy.useModel = this.useModel;
@@ -14672,7 +14672,7 @@ var GraySpriteMaterial = (function (Material$$1) {
};
GraySpriteMaterial.prototype.clone = function clone () {
var copy = new GraySpriteMaterial(values);
var copy = new GraySpriteMaterial();
copy.texture = this.texture;
copy.updateHash();
return copy;
@@ -14762,7 +14762,7 @@ var StencilMaterial = (function (Material$$1) {
};
StencilMaterial.prototype.clone = function clone () {
var copy = new StencilMaterial(values);
var copy = new StencilMaterial();
copy.useTexture = this.useTexture;
copy.texture = this.texture;
copy.alphaThreshold = this.alphaThreshold;
@@ -14903,7 +14903,7 @@ var ParticleMaterial = (function (Material$$1) {
};
ParticleMaterial.prototype.clone = function clone () {
var copy = new ParticleMaterial(values);
var copy = new ParticleMaterial();
copy.texture = this.texture;
copy.stateMap = this.stateMap;
copy.quadMap = this.quadMap;
File diff suppressed because one or more lines are too long
+7
View File
@@ -271,6 +271,8 @@ if (CC_DEV) {
// cc.Node
markAsRemoved(cc._BaseNode, [
'tag',
'getTag',
'setTag',
'getChildByTag',
'removeChildByTag'
]);
@@ -291,6 +293,7 @@ if (CC_DEV) {
'isIgnoreAnchorPointForPosition',
'ignoreAnchorPointForPosition',
'isRunning',
'_sgNode',
]);
markFunctionWarning(cc.Node.prototype, {
@@ -317,6 +320,10 @@ if (CC_DEV) {
setSkewX: 'skewX',
getSkewY: 'skewY',
setSkewY: 'skewY',
getScaleX: 'scaleX',
setScaleX: 'scaleX',
getScaleY: 'scaleY',
setScaleY: 'scaleY',
getOpacity: 'opacity',
setOpacity: 'opacity',
getColor: 'color',