Skip to content

Add multiselect for Terrain3DMeshAssets - #990

Closed
aidandavey wants to merge 1 commit into
TokisanGames:mainfrom
aidandavey:Multi-select-mesh-assets
Closed

Add multiselect for Terrain3DMeshAssets#990
aidandavey wants to merge 1 commit into
TokisanGames:mainfrom
aidandavey:Multi-select-mesh-assets

Conversation

@aidandavey

@aidandavey aidandavey commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

This adds the ability to select multiple Mesh Assets and paint them in a single operation. I changed the selected_id int to an Array

Left clicking a tile in the asset dock will add it to the selection, or deselect it if it is already selected.

Right clicking a tile will add it to the selection, but will not remove from the selection.

Density is independent for each MA, so you can paint grass at high density with lower density trees.

Instance removal is similarly multi-select, it will remove instances of the MAs that are currently selected.

Search - because we are selectively showing tiles here, we get a mismatch between the tile id and the asset id. To fix it, I have changed to a system whereby the selected_ids array contains the asset_ids, rather than tile ids. This means we can make a selection, perform a search, add a new MA to the selection, clear the search without losing our original selection.

Fixes #739

@aidandavey

Copy link
Copy Markdown
Contributor Author

Forgot I had a PR already open for this feature, I've pushed into that branch instead. Closing this one.

@aidandavey aidandavey closed this Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant