修复部分情况下开启节点树报错问题

This commit is contained in:
蜜糖时光-Next 2019-08-15 15:20:26 +08:00
parent 3cb2cca68f
commit 9cc74c2ae1
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# ccc-devtools v2.3.1 # ccc-devtools v2.3.2
Cocos Creator 网页调试工具,运行时查看、修改节点树,实时更新节点属性,可视化显示缓存资源。 Cocos Creator 网页调试工具,运行时查看、修改节点树,实时更新节点属性,可视化显示缓存资源。
## 预览 ## 预览

View File

@ -308,7 +308,7 @@ let app = new Vue({
setTimeout(() => { setTimeout(() => {
if (!cc.Node.prototype.isLeaf) { if (!cc.Node.prototype.isLeaf) {
cc.js.getset(cc.Node.prototype, 'isLeaf', function () { cc.js.getset(cc.Node.prototype, 'isLeaf', function () {
return this.childrenCount === 0; return !this.children || this.childrenCount === 0;
}, function (value) { }, function (value) {
}, false, true); }, false, true);

View File

@ -1,6 +1,6 @@
{ {
"name": "ccc-devtools", "name": "ccc-devtools",
"version": "2.3.1", "version": "2.3.2",
"author": "Next", "author": "Next",
"repo": "https://github.com/potato47/ccc-devtools.git" "repo": "https://github.com/potato47/ccc-devtools.git"
} }