Files
matt hoffman 7815fbb5c1 Behavior Tree Editor: Added support for adding comments without nodes being selected.
When you right click in the Behavior Tree, adjacent to "Auto Arrange" is a new "Add Comment"
When a comment is added, if you have a selection it encompasses the entire selection (matching existing behavior)
If you don't have a selection, it adds a default-sized comment box under your cursor
You can now press C at any point to create a comment under the cursor (matching Blueprint Behavior)

Specifically tested:
Having no nodes selected and pressing C to add a comment
Having one node selected and pressing C
Having multiple nodes selected and pressing C
Having a Decorator selected and pressing C (this doesn't create a bounding box but still creates the comment, not a regression, caused by a complication of how decorators don't have their own widgets)
The above but with the context menu's "Add Comment"

#jira UE-222463
#rb Aris.Theophanidis

[CL 35752310 by matt hoffman in ue5-main branch]
2024-08-22 15:45:44 -04:00
..