mirror of
https://github.com/potato47/ccc-devtools.git
synced 2024-12-25 19:29: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 网页调试工具,运行时查看、修改节点树,实时更新节点属性,可视化显示缓存资源。
|
Cocos Creator 网页调试工具,运行时查看、修改节点树,实时更新节点属性,可视化显示缓存资源。
|
||||||
|
|
||||||
## 预览
|
## 预览
|
||||||
|
@ -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);
|
||||||
|
@ -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"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user