From 75a5f14f01e76ff3b93662884144a6ae9bd97bd9 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 22 May 2021 01:39:59 +0100 Subject: [PATCH] //erode snowballs: Fix assignment to global variable; slightly refactor changelog Sincce we've got a number of bugfixes here and the changelog is getting a bit longer, I've split bugfixes up. --- CHANGELOG.md | 9 ++++++--- worldeditadditions/lib/erode/snowballs.lua | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0719670..c3c8af3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,6 @@ Note to self: See the bottom of this file for the release template text. ## v1.12: The selection tools update (unreleased) - Add `//spush`, `//spop`, and `//sstack` - - `//overlay`: Don't place nodes above water - - `//multi`: Improve resilience by handling some edge cases - Add `//srect` (_select rectangle_), `//scol` (_select column_), `//scube` (_select cube_) - thanks, @VorTechnix! - Add `//scloud` (_select point cloud_), `//scentre` (_select centre node(s)_), `//srel` (_select relative_) - thanks, @VorTechnix! - Significantly refactored backend utility functions (more to come in future updates) @@ -16,7 +14,12 @@ Note to self: See the bottom of this file for the release template text. - Caveat: Percentages are converted to a 1-in-N chance, but additionally that number is rounded down in some places - `//torus`, `//hollowtorus`: Add optional new axes - `//torus`: Add optional hollow keyword - - `//layers`: Fix crash duee to outdated debug code + +### Bugfixes + - `//overlay`: Don't place nodes above water + - `//multi`: Improve resilience by handling some edge cases + - `//layers`: Fix crash due to outdated debug code + - `//erode`/snowballs: Fix assignment to undeclared variable ## v1.11: The big data update (25th January 2021) diff --git a/worldeditadditions/lib/erode/snowballs.lua b/worldeditadditions/lib/erode/snowballs.lua index 34fce59..e582d2b 100644 --- a/worldeditadditions/lib/erode/snowballs.lua +++ b/worldeditadditions/lib/erode/snowballs.lua @@ -132,7 +132,7 @@ function worldeditadditions.erode.snowballs(heightmap_initial, heightmap, height if not params.noconv then local success, matrix = worldeditadditions.get_conv_kernel("gaussian", 3, 3) if not success then return success, matrix end - matrix_size = {} matrix_size[0] = 3 matrix_size[1] = 3 + local matrix_size = {} matrix_size[0] = 3 matrix_size[1] = 3 worldeditadditions.conv.convolve( heightmap, heightmap_size, matrix,