Keep the other dim from the original segment when modifying vertex

This commit is contained in:
Thomas Chandelle committed 2016-11-04 09:47:30 +01:00
1 parent c0f960cf71
commit 5d61218134
2 files changed
+45 -1

No files matched your search

+1 -1
View File
@@ -580,7 +580,7 @@ ol.interaction.Modify.handleDragEvent_ = function(evt) {
var index = dragSegment[1];
while (vertex.length < geometry.getStride()) {
vertex.push(0);
vertex.push(segment[index][vertex.length]);
}
switch (geometry.getType()) {