Commit Graph

63 Commits

Author SHA1 Message Date
Andrew Rodham
2d77514016 Fixed not being able to rename some graph node types on initial creation
This addresses UE-14873.

[CL 2547706 by Andrew Rodham in Main branch]
2015-05-12 15:39:48 -04:00
Michael Schoell
d798e477c8 Blueprints and Behavior Trees will no longer have their graphs display as disabled/read-only when debugging (in PIE).
Fallout from CL# 2535806

#jira UE-15170 - When in PIE, Blueprints display as disabled making them difficult to debug.

[CL 2541246 by Michael Schoell in Main branch]
2015-05-07 12:39:59 -04:00
Michael Schoell
2043b596a8 Various graphs that looked disabled, will now correctly display as Read Only but can be panned and nodes are selectable.
Reworked how graphs were disabled to stop all out disabling of the SGraphPanel while still maintaining the visual display of being read-only.

Removed concept of TitleBarEnabledOnly from the graph editor and merged it with the IsEditable functionality.

#jira UE-10289  - Changing Blueprint Interface layout can shift nodes out of view

[CL 2535806 by Michael Schoell in Main branch]
2015-05-04 11:08:14 -04:00
Jamie Dale
0ca520a77e Improved diffing of behavior tree graphs
UETOOL-292 - Diffing of Behavior Trees doesn't work correctly

- Added support for diffing decorators and services.
- Ensured that you could see the properties of services and decorators in the diff tool.
    - This is now using common code shared with the behavior tree editor (to avoid this getting out of sync again).
- Fixed an issue where nodes containing changes could still be drawn faded out.
    - The "DiffR_" functions in GraphDiffControl weren't marking the node as changed since the diff results couldn't hold the information.
- Fixed SNodePanel::DeferredMovementTargetObject always moving the selection into view (rather than itself).
- Added a way to move to a node without also selecting it (SNodePanel::CenterObject).
    - This is needed as decorators and services don't exist as top-level nodes in the SNodePanel, so can't be centered on. We instead have to center on their container node.
- Added a way to control what items you want to diff.
    - This helps when checking for nodes that have been removed, as you can now avoid having to re-check all the other properties on the node, and just check for their existence (or lack thereof).

[CL 2533378 by Jamie Dale in Main branch]
2015-05-01 06:38:56 -04:00
Andrew Rodham
234e1259a4 Fixed not being able to rename graph nodes on mac
This addresses UE-9950.

[CL 2529992 by Andrew Rodham in Main branch]
2015-04-29 06:52:02 -04:00
Michael Noland
56943257fe Graph Editor: Allowed interacting with splines when they overlap with a comment node [UE-13021]
[CL 2521705 by Michael Noland in Main branch]
2015-04-22 16:40:05 -04:00
Jamie Dale
a7ba1dcd00 Back out changelist 2519615
[CL 2519619 by Jamie Dale in Main branch]
2015-04-21 14:13:02 -04:00
Jamie Dale
735bca0f8f WIP - Fixing behaviour tree culling and line drawing
[CL 2519615 by Jamie Dale in Main branch]
2015-04-21 14:12:32 -04:00
Andrew Rodham
efcc3d35b7 Fixed graph nodes sometimes not opening a rename when created
Changed the way that renames are initiated to depend on the event structure passed in, rather than keyboard focus
This addresses UE-9950.

[CL 2519070 by Andrew Rodham in Main branch]
2015-04-21 08:43:00 -04:00
Michael Noland
119b4b02b2 Graph Editor: Changed how spline hovering stores data, avoiding direct pin pointers beyond the frame
[UE-13270]

[CL 2501422 by Michael Noland in Main branch]
2015-04-03 14:40:58 -04:00
Michael Noland
da5d18f983 Graph Editor: Add a shortcut to create reroute nodes by double-clicking on BP spline connections
[CL 2484035 by Michael Noland in Main branch]
2015-03-18 23:32:57 -04:00
Michael Noland
11a6f30422 Graph Editor: Add tool tip display to hovered splines
[CL 2483985 by Michael Noland in Main branch]
2015-03-18 22:45:35 -04:00
Michael Noland
3c77014348 Graph Editor: Add experimental support for hovering and interacting with splines
- Currently gated by a setting in Editor Preferences..Graph Editors
- Alt+LMB Click on the spline to break the connection
- Ctrl+LMB Click on the spline to move the connection to a different pin
- Hover over the spline to highlight it

[CL 2483923 by Michael Noland in Main branch]
2015-03-18 21:37:27 -04:00
Marc Audy
a425eba9ed Unify Slate's FInputGesture and Engine's FInputChord as FInputChord defined in Slate
[CL 2481648 by Marc Audy in Main branch]
2015-03-17 11:36:28 -04:00
Matthew Griffin
e8b2eff5c2 [INTEGRATE] Change 2448972 by Maciej.Mroz@maciej.mroz_Z3302_4727 on 2015/02/17 13:49:55
UE-9950 Creating Custom Event doesn't allow user to name it right away anymore

	#codereview Ben.Cosh, Nick.Darnell

	#lockdown Nick.Whiting

[CL 2450028 by Matthew Griffin in Main branch]
2015-02-18 09:05:55 -05:00
Matthew Griffin
7a5b092fe9 [INTEGRATE] Change 2441355 by Ben.Cosh@BCosh_Home2 on 2015/02/11 05:57:54
This change re-implements info bubble vertical stacking functionality on GraphNodes.
	#UE-9280 - Node comment bubbles draw on top of diagnostic info bubbles (pin watches, anim states / timeline / latent action time displays / etc...)
	#Branch UE4-Releases
	#Proj GraphEditor

	#info Also added a fix for compact nodes not displaying any comments

	codereview Michael.Noland

[CL 2448656 by Matthew Griffin in Main branch]
2015-02-17 09:57:29 -05:00
Dan Oconnor
1525756ac9 Fix for UE-8789, we had two SGraphNodes for a single UEdGraphNode (refresh and add node called on the same frame)
[CL 2428978 by Dan Oconnor in Main branch]
2015-02-02 18:26:26 -05:00
Ben Marsh
4d5c52456e [INTEGRATE] Change 2411381 by Nick.Darnell@Nick.Darnell_Dev on 2015/01/19 16:39:31
Editor - Adding the unified blueprint editor view.  Combines all the modes into a single blueprint editor.  Still requires being enabled through the experimental option in the editor.

[CL 2419336 by Ben Marsh in Main branch]
2015-01-26 17:51:00 -05:00
Dan Oconnor
c1e8a85ad8 Fix for UE-8199, UE-8202 - intermittent crash when deleting nodes.. copy paste error, could have been prevented by using EraseIf. To reproduce the bug delete a node when there are VisibleChildren
[CL 2419239 by Dan Oconnor in Main branch]
2015-01-26 17:11:14 -05:00
Wes Hunt
5e497c92d4 Added custom slate stats, removed all but top level UE4 slate stats. #BUN
* See SlateStats.h for details on the new system, which allows for full hierarchical profiling with limited overhead.
* Moved SWidget::GetVisibility() out of line so we can instrument it without a full recompile.
* Widget debug info now uses FName to store the line number of the file. Keeps it in one place and the new stats system can utilize it as an FName.
* Exposed SWidget CreatedInFile debug info as an FName so new stats system can use it.
* FSlateVertex no longer uses FVector4, which is an aligned struct. Switched to float[4] instead. Goes from 48 to 36 bytes.
#codereview:nick.atamas,matt.kuhlenschmidt

[CL 2417281 by Wes Hunt in Main branch]
2015-01-23 16:49:16 -05:00
Dan Oconnor
635c401f58 No longer purging the visual representation when nodes are added to the vanilla blueprint editor (should not affect anim blueprint, material editor, etc)
[CL 2415500 by Dan Oconnor in Main branch]
2015-01-22 13:35:22 -05:00
Dan Oconnor
6ae9c6cac0 Blueprint editor no longer purges SGraphNodes when a node is removed, disabled for all schemas except 'clean' k2 schema because of risk
[CL 2414958 by Dan Oconnor in Main branch]
2015-01-21 23:54:10 -05:00
Dan Oconnor
2efabfa541 Back out changelist 2411626
I fixed the crash found in the material editor, but discovered some rendering issues. Backing this out for now.

[CL 2412583 by Dan Oconnor in Main branch]
2015-01-20 14:04:44 -05:00
Dan Oconnor
b0c9f152da We no longer refresh the graph panel when a user deletes or adds a graph node. This is a substantial improvement in responsiveness, especially when the user is editing large graphs.
[CL 2411626 by Dan Oconnor in Main branch]
2015-01-19 18:54:38 -05:00
Nick Atamas
f5e19bef14 Slate : RelativeLayoutScale is now computed in the SlatePrepass(). ComputeDesiredSize() now takes a float parameter. API-breaking change!
[CL 2406629 by Nick Atamas in Main branch]
2015-01-14 19:04:45 -05:00