Change -h Tool Command Flag to Always Impact Secondary Brush #2560
+37
−32
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.
Overview
I was asked recently what the
-h
flag did in various tool util commands as the existing description of "Whether the offhand should be considered or not" is unclear to others and myself.Upon using it, and from the feedback of others trying to use it too, it felt inconsistent in when it would change the primary or secondary brush.
From reading the code it appears the intent is for tool util commands to change the last used brush when a primary & secondary are set, with the flag inverting which one it impacts.
I think this isn't very intuitive and believe it would make more sense to just have the flag set to change the secondary brush, otherwise the primary.
Description
This changes the
-h
flag to always change the value for the secondary brush, if one is set. If no flag is used, or no secondary brush is set, then it will just change the primary brush.I have changed the help page info to make this clear.
Additionally I have added the same flag functionality to the
/size
//br size
command.Lastly, some minor tidying of the unused editSession import, and the inconsistent tool/brushTool/bt naming.
Hopefully this change makes sense, I'd be curious to hear if myself and those I spoke to are in the minority when it comes to thinking the existing method is unclear and hard to use.
Submitter Checklist