ifnotsuccessthenreturnsuccess,"Error while reading from '"..filepath.."': "..brushend
wea.sculpt.brushes[name]={
brush=brush,
size=brush_size
}
returntrue
end
--- Scans the given directory and imports all static brushes found.
-- Static brushes have the file extension ".brush.tsv" (without quotes).
-- @param dirpath string The path to directory that contains the static brushs to import.
-- @returns bool,loaded,errors A success boolean, followed by the number of brushes loaded, followed by the number of errors encountered while loading brushes (errors are logged as warnings with Minetest)