Add multiselect for Terrain3DMeshAssets - #990
Closed
aidandavey wants to merge 1 commit into
Closed
Conversation
Contributor
Author
|
Forgot I had a PR already open for this feature, I've pushed into that branch instead. Closing this one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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