Merge 1.9

This commit is contained in:
Jare Guo
2018-05-09 21:14:29 +08:00
3 changed files with 11 additions and 1 deletions
+9
View File
@@ -2493,6 +2493,15 @@ var Node = cc.Class({
_removeSgNode: SgHelper.removeSgNode,
onRestore: CC_EDITOR && function () {
// update dummy sgNode of components
for (var i=0; i<this._components.length; i++) {
var comp = this._components[i];
if (!comp || !comp._sgNode) {
continue;
}
comp._sgNode.visible = comp.enabledInHierarchy;
}
this._updateDummySgNode();
var sizeProvider = this._sizeProvider;
+1 -1
View File
@@ -329,7 +329,7 @@ var EditBox = cc.Class({
/**
* !#en The font color of placeholder.
* !#zh 输入框最大允许输入的字符个数。
* !#zh 输入框占位符的字体颜色。
* @property {Color} placeholderFontColor
*/
placeholderFontColor: {
+1
View File
@@ -565,6 +565,7 @@ var Sprite = cc.Class({
}
}
else {
sgNode.setSpriteFrame(null);
sgNode.setVisible(false);
}