Skip to content

Commit b66ef25

Browse files
authored
allow specifying groupId in createTree skeleton action (#2978)
1 parent d8e69b9 commit b66ef25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webknossos-datastore/app/com/scalableminds/webknossos/datastore/tracings/skeleton/updating/SkeletonUpdateActions.scala

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ import play.api.libs.json._
1111

1212

1313
case class CreateTreeSkeletonAction(id: Int, color: Option[com.scalableminds.util.image.Color], name: String,
14-
branchPoints: List[UpdateActionBranchPoint], timestamp: Long, comments: List[UpdateActionComment], actionTimestamp: Option[Long] = None) extends UpdateAction.SkeletonUpdateAction with SkeletonUpdateActionHelper {
14+
branchPoints: List[UpdateActionBranchPoint], timestamp: Long, comments: List[UpdateActionComment], actionTimestamp: Option[Long] = None,
15+
groupId: Option[Int]) extends UpdateAction.SkeletonUpdateAction with SkeletonUpdateActionHelper {
1516
override def applyOn(tracing: SkeletonTracing) = {
16-
val newTree = Tree(id, Nil, Nil, convertColorOpt(color), branchPoints.map(convertBranchPoint), comments.map(convertComment), name, timestamp)
17+
val newTree = Tree(id, Nil, Nil, convertColorOpt(color), branchPoints.map(convertBranchPoint), comments.map(convertComment), name, timestamp, groupId)
1718
tracing.withTrees(newTree +: tracing.trees)
1819
}
1920

0 commit comments

Comments
 (0)