mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-04-06 17:31:09 +08:00
Fix duplicated groups appearing at outliner bottom
This commit is contained in:
parent
e65faa4ffa
commit
15ba9dc866
@ -58,9 +58,6 @@ class Group extends OutlinerNode {
|
||||
init() {
|
||||
super.init();
|
||||
Project.groups.push(this);
|
||||
if (typeof this.parent !== 'object') {
|
||||
this.addTo();
|
||||
}
|
||||
if (!this.mesh || !this.mesh.parent) {
|
||||
this.constructor.preview_controller.setup(this);
|
||||
}
|
||||
|
@ -115,9 +115,8 @@ class OutlinerNode {
|
||||
return this.constructor.preview_controller;
|
||||
}
|
||||
//Sorting
|
||||
sortInBefore(element, index_mod) {
|
||||
sortInBefore(element, index_mod = 0) {
|
||||
var index = -1;
|
||||
index_mod = index_mod || 0;
|
||||
|
||||
if (element.parent === 'root') {
|
||||
index = Outliner.root.indexOf(element)
|
||||
|
Loading…
x
Reference in New Issue
Block a user