Commit cd11170b authored by rockyl's avatar rockyl

后续遍历会过滤无效的实体

parent 86167e9c
......@@ -52,6 +52,9 @@ export function traversePostorder(target: Entity, hitChild: (child: Entity, ...p
for (let i = target.children.length - 1; i >= 0; i--) {
const child = target.children[i];
if(!child.enabled){
continue;
}
if (traversePostorder(child, hitChild, level - 1, false, fullCallback, ...params)) {
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment