mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
Fix bug reported from ye man ren
This commit is contained in:
@@ -342,7 +342,6 @@ var Label = cc.Class({
|
||||
if (value && this._isSystemFontUsed)
|
||||
this._isSystemFontUsed = false;
|
||||
|
||||
|
||||
if ( typeof value === 'string' ) {
|
||||
cc.warnID(4000);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
+9981
-9982
File diff suppressed because one or more lines are too long
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user