Track depths on deduped children
Fixes a very specific error case where deduped children won’t receive the depths object due to it being omitted by the caller when optimizing. Fixes #926
This commit is contained in:
@@ -696,6 +696,8 @@ JavaScriptCompiler.prototype = {
|
||||
} else {
|
||||
child.index = index;
|
||||
child.name = 'program' + index;
|
||||
|
||||
this.useDepths = this.useDepths || child.depths.list.length;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user