terrain mask work

adds an isValid(gridinfo tile) command to prefilter out grid elements of a specified nature
applies that to SetEmptyAction::process
also corrects sliderbar positions for terrain painting elements, as ell as adds a min/max slope for removal

potential TODOs: apply it more places pending feedback. add a min/max hieght filter as well
This commit is contained in:
AzaezelX 2024-10-23 17:50:07 -05:00
parent 43501127ec
commit 85955479c8
5 changed files with 230 additions and 8 deletions

View file

@ -54,7 +54,7 @@ class TerrainAction
End,
Process
};
bool isValid(GridInfo tile);
//
virtual void process(Selection * sel, const Gui3DMouseEvent & event, bool selChanged, Type type) = 0;
virtual bool useMouseBrush() { return(true); }