mirror of
https://github.com/potato47/ccc-devtools.git
synced 2024-12-25 03:09:13 +00:00
修复部分情况下开启节点树报错问题
This commit is contained in:
parent
3cb2cca68f
commit
9cc74c2ae1
@ -1,4 +1,4 @@
|
||||
# ccc-devtools v2.3.1
|
||||
# ccc-devtools v2.3.2
|
||||
Cocos Creator 网页调试工具,运行时查看、修改节点树,实时更新节点属性,可视化显示缓存资源。
|
||||
|
||||
## 预览
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user