diff --git a/CHANGELOG.md b/CHANGELOG.md index d1c97d8..c5cc509 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Note to self: See the bottom of this file for the release template text. - Add `//dome+`, which allows you to change the direction the dome is pointing in, and also create multiple domes at once - Add `//metaball`, which renders 2 or more [metaballs](https://en.wikipedia.org/wiki/Metaballs) in Minetest - Migrate from `depends.txt` to `mod.conf` + - `//sculpt`: Fix undefined `default` brush ## v1.13: The transformational update (2nd January 2022) diff --git a/worldeditadditions/lib/sculpt/make_brush.lua b/worldeditadditions/lib/sculpt/make_brush.lua index 5dc6d1b..ea05900 100644 --- a/worldeditadditions/lib/sculpt/make_brush.lua +++ b/worldeditadditions/lib/sculpt/make_brush.lua @@ -5,6 +5,7 @@ local wea = worldeditadditions -- @param target_size Vector3 The target size of the brush to create. -- @returns true,table,Vector3|false,string If the operation was successful, true followed by the brush in a 1D ZERO-indexed table followed by the actual size of the brush as a Vector3 (x & y components used only). If the operation was not successful, false and an error message string is returned instead. local function make_brush(brush_name, target_size) + if brush_name == "default" then brush_name = "circle_soft1" end if not wea.sculpt.brushes[brush_name] then return false, "Error: That brush does not exist. Try using //sculptbrushes to list all available sculpting brushes." end local brush_def = wea.sculpt.brushes[brush_name]