mirror of
https://github.com/BlueMap-Minecraft/BlueMapWeb.git
synced 2025-02-19 19:31:41 +01:00
Fix marker lines can not update with more segments then before (BlueMap-Minecraft/BlueMap#221)
This commit is contained in:
parent
f70745f82b
commit
730d726b37
@ -415,6 +415,7 @@ class ExtrudeMarkerBorder extends Line2 {
|
||||
* @param shape {Shape}
|
||||
*/
|
||||
updateGeometry(shape) {
|
||||
this.geometry = new LineSegmentsGeometry();
|
||||
this.geometry.setPositions(ExtrudeMarkerBorder.createLinePoints(shape));
|
||||
this.computeLineDistances();
|
||||
}
|
||||
|
@ -276,6 +276,7 @@ class LineMarkerLine extends Line2 {
|
||||
* @param points {number[]}
|
||||
*/
|
||||
updateGeometry(points) {
|
||||
this.geometry = new LineGeometry();
|
||||
this.geometry.setPositions(points);
|
||||
this.computeLineDistances();
|
||||
}
|
||||
|
@ -408,6 +408,7 @@ class ShapeMarkerBorder extends Line2 {
|
||||
* @param shape {Shape}
|
||||
*/
|
||||
updateGeometry(shape) {
|
||||
this.geometry = new LineGeometry();
|
||||
this.geometry.setPositions(ShapeMarkerBorder.createLinePoints(shape));
|
||||
this.computeLineDistances();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user