Only update the index for the current component
This commit is contained in:
@@ -582,6 +582,7 @@ ol.interaction.Modify.prototype.insertVertex_ = function(segmentData, vertex) {
|
|||||||
for (var i = 0, ii = segmentDataMatches.length; i < ii; ++i) {
|
for (var i = 0, ii = segmentDataMatches.length; i < ii; ++i) {
|
||||||
var segmentDataMatch = segmentDataMatches[i];
|
var segmentDataMatch = segmentDataMatches[i];
|
||||||
if (segmentDataMatch.geometry === geometry &&
|
if (segmentDataMatch.geometry === geometry &&
|
||||||
|
segmentDataMatch.depth[0] == depth[0] &&
|
||||||
segmentDataMatch.index > index) {
|
segmentDataMatch.index > index) {
|
||||||
++segmentDataMatch.index;
|
++segmentDataMatch.index;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user