mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Merge remote-tracking branch 'origin/1.16' into 1.16
This commit is contained in:
commit
db3718e092
@ -75,10 +75,12 @@ public class BlobBrush implements Brush {
|
|||||||
MutableVector3 mutable = new MutableVector3();
|
MutableVector3 mutable = new MutableVector3();
|
||||||
double roughness = 1 - sphericity;
|
double roughness = 1 - sphericity;
|
||||||
for (int xr = -sizeInt; xr <= sizeInt; xr++) {
|
for (int xr = -sizeInt; xr <= sizeInt; xr++) {
|
||||||
mutable.mutX(xr);
|
|
||||||
for (int yr = -sizeInt; yr <= sizeInt; yr++) {
|
for (int yr = -sizeInt; yr <= sizeInt; yr++) {
|
||||||
mutable.mutY(yr);
|
|
||||||
for (int zr = -sizeInt; zr <= sizeInt; zr++) {
|
for (int zr = -sizeInt; zr <= sizeInt; zr++) {
|
||||||
|
// pt == mutable as it's a MutableVector3
|
||||||
|
// so it must be set each time
|
||||||
|
mutable.mutX(xr);
|
||||||
|
mutable.mutY(yr);
|
||||||
mutable.mutZ(zr);
|
mutable.mutZ(zr);
|
||||||
Vector3 pt = transform.apply(mutable);
|
Vector3 pt = transform.apply(mutable);
|
||||||
int x = MathMan.roundInt(pt.getX());
|
int x = MathMan.roundInt(pt.getX());
|
||||||
|
Loading…
Reference in New Issue
Block a user