diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index d29e49d28aa..835f41e0377 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -11,14 +11,14 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released [Commits](https://github.com/scalableminds/webknossos/compare/20.07.0...HEAD) ### Added -- Added the possibility to delete datasets on disk from webKnossos. Use with care. [#4696]()(https://github.com/scalableminds/webknossos/pull/4696) +- Added the possibility to delete datasets on disk from webKnossos. Use with care. [#4696](https://github.com/scalableminds/webknossos/pull/4696) ### Changed - When d/f switching is turned off and a slice is copied with the shortcut `v`, the previous slice used as the source will always be slice - 1 and `shift + v` will always take slice + 1 as the slice to copy from. [#4728](https://github.com/scalableminds/webknossos/pull/4728) - Disabled the autofill feature of the brush when using this tool to erase data. [#4729](https://github.com/scalableminds/webknossos/pull/4729) ### Fixed -- +- Fixed tree groups when uploading NMLs with multi-component trees. [#4735](https://github.com/scalableminds/webknossos/pull/4735) ### Removed - diff --git a/webknossos-tracingstore/app/com/scalableminds/webknossos/tracingstore/tracings/skeleton/MultiComponentTreeSplitter.scala b/webknossos-tracingstore/app/com/scalableminds/webknossos/tracingstore/tracings/skeleton/MultiComponentTreeSplitter.scala index 0112d74d0a6..6e812bbb750 100644 --- a/webknossos-tracingstore/app/com/scalableminds/webknossos/tracingstore/tracings/skeleton/MultiComponentTreeSplitter.scala +++ b/webknossos-tracingstore/app/com/scalableminds/webknossos/tracingstore/tracings/skeleton/MultiComponentTreeSplitter.scala @@ -29,7 +29,7 @@ object MultiComponentTreeSplitter { val newTreeGroup = TreeGroup(tree.name, largestGroupId, List()) val parentTreeGroupIdOpt: Option[Int] = tree.groupId parentTreeGroupIdOpt.foreach { parentTreeGroupId => - treeGroupsMutable = addTreeGroupAsChild(treeGroups, parentTreeGroupId, newTreeGroup) + treeGroupsMutable = addTreeGroupAsChild(treeGroupsMutable, parentTreeGroupId, newTreeGroup) } if (parentTreeGroupIdOpt.isEmpty) { treeGroupsMutable = newTreeGroup +: treeGroupsMutable