mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
//sculpt: sort pos{1,2}_compute
This commit is contained in:
parent
732010a8ee
commit
ca6f1e7cea
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ local function apply(pos1, brush_name, height, brush_size)
|
||||||
local pos1_compute = pos1 - brush_size_radius
|
local pos1_compute = pos1 - brush_size_radius
|
||||||
local pos2_compute = pos1 + brush_size_radius + Vector3.new(0, height, 0)
|
local pos2_compute = pos1 + brush_size_radius + Vector3.new(0, height, 0)
|
||||||
|
|
||||||
|
pos1_compute, pos2_compute = Vector3.sort(
|
||||||
|
pos1_compute,
|
||||||
|
pos2_compute
|
||||||
|
)
|
||||||
|
|
||||||
-- 2: Fetch the nodes in the specified area, extract heightmap
|
-- 2: Fetch the nodes in the specified area, extract heightmap
|
||||||
local manip, area = worldedit.manip_helpers.init(pos1_compute, pos2_compute)
|
local manip, area = worldedit.manip_helpers.init(pos1_compute, pos2_compute)
|
||||||
|
|
Loading…
Reference in a new issue