Commit 6bc86116 authored by 任建锋's avatar 任建锋

Merge branch 'designtime' of http://gitlab2.dui88.com/laoqifeng/zeroing-engine into designtime

parents 26d344c4 234db6e3
...@@ -288,7 +288,8 @@ export default class Container extends DisplayObject { ...@@ -288,7 +288,8 @@ export default class Container extends DisplayObject {
while (node.parent) { while (node.parent) {
let child = node; let child = node;
node = node.parent; node = node.parent;
path.unshift(node.getChildIndex(child)); let index = node.children.indexOf(child);
path.unshift(index);
if (node === untilNode) { if (node === untilNode) {
break; break;
} }
......
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