Add separate button for painting in the grid map editor #97664
+279
−157
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 changes the Node3DEditor to make the list of tools extensible, so that editors that inherit from it can add additional "modes" that can work alongside the existing tools (select/move/rotate etc.) without one taking priority over the other.
This adds a separate button for painting. This button can either be selected manually or will automatically be selected when something is selected from the palette. Only when the button is selected can things be placed and the associated shortcuts will work.
This is designed to solve issues like the following, as you can either paint, or fiddle with the gizmo or move the camera, but won't them to conflict as the gizmo won't be visible when painting, and when using the gizmo there isn't a chance of accidently painting instead.
#74520
#19860
#17499
If a selection is active, currently clicking with something from the selected from the palette will allow you to paint whilst the selection is active, clicking without something selected causes you to be booted out of the grid map. The selection will now be removed if intending to paint, or if clicking occurs without something selected it will just remove the selection without being booted out of the grid map.