mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
Correct ellipsoidal selector initialization (#1632)
When the previous selection was a non-ellipsoidal region, the started flag would not be appropriately set until a new selection had been started.
This commit is contained in:
parent
3a3bf3de2c
commit
f04ae2f1ec
@ -79,6 +79,7 @@ public EllipsoidRegionSelector(RegionSelector oldSelector) {
|
||||
final EllipsoidRegionSelector ellipsoidRegionSelector = (EllipsoidRegionSelector) oldSelector;
|
||||
|
||||
region = new EllipsoidRegion(ellipsoidRegionSelector.getIncompleteRegion());
|
||||
started = ellipsoidRegionSelector.started;
|
||||
} else {
|
||||
Region oldRegion;
|
||||
try {
|
||||
@ -93,6 +94,7 @@ public EllipsoidRegionSelector(RegionSelector oldSelector) {
|
||||
BlockVector3 center = pos1.add(pos2).divide(2).floor();
|
||||
region.setCenter(center);
|
||||
region.setRadius(pos2.subtract(center).toVector3());
|
||||
started = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user