The vertex is always the same, no need to store it with the segment

This commit is contained in:
Maximilian Krög
2020-09-28 16:10:11 +02:00
parent 0387399554
commit edb3b5f4fd
+2 -2
View File
@@ -960,7 +960,7 @@ class Modify extends PointerInteraction {
!componentSegments[uid][1] && !componentSegments[uid][1] &&
this.insertVertexCondition_(evt) this.insertVertexCondition_(evt)
) { ) {
insertVertices.push([segmentDataMatch, vertex]); insertVertices.push(segmentDataMatch);
} }
} }
@@ -969,7 +969,7 @@ class Modify extends PointerInteraction {
} }
for (let j = insertVertices.length - 1; j >= 0; --j) { for (let j = insertVertices.length - 1; j >= 0; --j) {
this.insertVertex_.apply(this, insertVertices[j]); this.insertVertex_(insertVertices[j], vertex);
} }
} }
return !!this.vertexFeature_; return !!this.vertexFeature_;