Commit a89170a3 authored by rockyl's avatar rockyl

修复实例化预制体报错的问题

parent d1c9f4da
......@@ -83,7 +83,7 @@ function instantiateConfig(config, root?: Entity, pid?:number): Entity {
setupComponent(rootConfig, entity, true);
injectComponent(rootConfig, entity, true, pid);
traverse(root, child => {
traverse(entity, child => {
child.active();
return false;
......
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