diff --git a/README.md b/README.md index 6488b2a..7046556 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ccc-devtools v2.3.1 +# ccc-devtools v2.3.2 Cocos Creator 网页调试工具,运行时查看、修改节点树,实时更新节点属性,可视化显示缓存资源。 ## 预览 diff --git a/js/app.js b/js/app.js index 5fc8b51..8b1215f 100644 --- a/js/app.js +++ b/js/app.js @@ -308,7 +308,7 @@ let app = new Vue({ setTimeout(() => { if (!cc.Node.prototype.isLeaf) { cc.js.getset(cc.Node.prototype, 'isLeaf', function () { - return this.childrenCount === 0; + return !this.children || this.childrenCount === 0; }, function (value) { }, false, true); diff --git a/version.json b/version.json index b91c0bf..08ef89b 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "name": "ccc-devtools", - "version": "2.3.1", + "version": "2.3.2", "author": "Next", "repo": "https://github.com/potato47/ccc-devtools.git" } \ No newline at end of file