//sculpt: fix crash when pos2 is not defined

This commit is contained in:
Starbeamrainbowlabs 2022-01-02 14:45:46 +00:00
parent d9204e95b5
commit 6a1fd707d4
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 4 deletions

View File

@ -61,10 +61,8 @@ worldedit.register_command("sculpt", {
end,
func = function(name, brush_name, height, brush_size)
local start_time = wea.get_ms_time()
local pos1, pos2 = wea.Vector3.sort(
worldedit.pos1[name],
worldedit.pos2[name]
)
local pos1 = wea.Vector3.clone(worldedit.pos1[name])
local success, stats = wea.sculpt.apply(
pos1,
brush_name, height, brush_size