Commit Graph

332 Commits

Author SHA1 Message Date
Maciej Mroz
94197986df GetBaseStructure was replaced with TBaseStructure<>::Get()
Related to: https://udn.unrealengine.com/questions/244398/blueprint-struct-with-vector-member-crashes-editor.html

#codereview Robert.Manuszewski, Jaroslaw.Palczynski, Nick.Whiting

[CL 2538645 by Maciej Mroz in Main branch]
2015-05-05 23:07:23 -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
Dan Oconnor
7877e203fb [UE-14700] Improving check message, CNR
[CL 2534617 by Dan Oconnor in Main branch]
2015-05-01 19:31:19 -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
Ben Cosh
7e0c9d9e28 Changing the comment bubble newline modifier key to shift in order match other examples in the editor.
#Branch UE4
#Proj GraphEditor

[CL 2530000 by Ben Cosh in Main branch]
2015-04-29 06:59:37 -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
Simon Tovey
0453945bb0 UE-14522 - Unlit materials no longer make use of the normal input thus making it impossible to use modified normals to modify refraction on unlit materials
The material side of this was actually working. When the refraction input is connected, the normal pin is active. The issue was just visual.
Material result node pin widgets were caching their colour on construction. Changed to recalculate each frame.

[CL 2529948 by Simon Tovey in Main branch]
2015-04-29 05:45:13 -04:00
Michael Noland
11db89485f Graph Editor: Removed dead method ComputeSensibleGraphBounds from SNodePanel
[CL 2529477 by Michael Noland in Main branch]
2015-04-28 19:45:43 -04:00
Jamie Dale
9968a0a15c Some workflow and performance improvements for behavior trees and environmental queries
UETOOL-293 - Behavior Tree Editor is sluggish

- Made the behavior tree and environmental query pins larger so they're easier to grab.
- Adjusted the node padding so that we don't add the padding for the pins when there aren't any pins.
- Added lodding so that node elements are culled out as you zoom out (to improve performance).
- Fixed connections being culled when they were still visible.

[CL 2528547 by Jamie Dale in Main branch]
2015-04-28 11:13:20 -04:00
Ben Cosh
c8bdd05cdc This changes the dark background on the documentation nodes to something lighter so the text can be read more easily.
#UE-14516 - Documentation Node Text Not Legible
#Branch UE4
#Proj GraphEditor

[CL 2528382 by Ben Cosh in Main branch]
2015-04-28 09:00:44 -04:00
Ben Cosh
ac6b1e60da This modifies the comment balloons behavior on reroute nodes to be more inline other node comment balloons by enabling a toggle button and displaying by default when a comment is entered in the context menu.
#UE-12866 - Have node comments and reroute node comments act the same
#Branch UE4
#Proj Engine, GraphEditor

#includes some more general comment node / comment bubble fixes

[CL 2528202 by Ben Cosh in Main branch]
2015-04-28 04:58:34 -04:00
Michael Schoell
ef74111bf9 Editor should not stall when pasting large amounts of text into the Blueprint node context menu filter.
#jira UE-11436 - Hang after you paste node data into Blueprint right click menu

[CL 2527289 by Michael Schoell in Main branch]
2015-04-27 15:09:27 -04:00
Ben Cosh
0dc3ecf817 Fix for broken comment node colors
#UE-14212 - Fortnite Branch: Colors no longer work on Blueprint comments
#Branch UE4
#Proj GraphEditor

[CL 2526760 by Ben Cosh in Main branch]
2015-04-27 06:45:26 -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 Schoell
ef73facb3f Sub-items in the My Blueprint panel will no longer be mis-categorized into the Function's section.
Category grouping is no longer relevant for matching to sub-items. In the same section, never want two categories of the same name.

#jira UE-13995 - Crash when renaming AnimGraph function in AnimBP

[CL 2518112 by Michael Schoell in Main branch]
2015-04-20 15:39:11 -04:00
Michael Schoell
abb8124662 Keywords metadata is now localized.
Blueprint node searching now leverages localized keyword metadata for searching, so searches can now be done in the current langauge and English to find the same nodes.

#jira UE-12049 - Using translated editor, Blueprint node search returns differ for English search terms compared to search terms in the current language

#codereview justin.sargent

[CL 2517785 by Michael Schoell in Main branch]
2015-04-20 12:25:37 -04:00
Andrew Rodham
8ff0d8b98b Added config migration path for newer versions of the engine.
Newly installed versions of the engine will now attempt to copy the project-agnostic config settings from a previous engine installation. This happens by way of a versioned manifest that copies old versions when the manifest does not exist, or is a different version. This code path is benign for non-installed versions of the engine (or FPaths::ShouldSaveToUserDir() is false).

EditorGameAgnosticSettings and EditorUserSettings ini paths have been renamed to EditorSettings and EditorPerProjectUserSettings respectively to better convey their purpose. In general, most settings should be saved in EditorSettings (project-agnostic) so that they apply regardless of which project is open. We have some way to go migrating existing settings for this to be the case, however.

Some previously per-project configuration files are now project-agnostic (such as Editor.ini, EditorKeyBindings.ini, and EditorLayout.ini)

GEditor->Access...Settings and GEditor->Get...Settings have been removed in favor of direct access of the CDO through GetMutableDefault<> and GetDefault<> respectively. Global config ini filenames that are not set up are now neither loaded nor saved on build machines, to handle the problem of indeterminate state more generically.

This addresses UETOOL-270 (Most editor preferences should be project-agnostic)

[CL 2517558 by Andrew Rodham in Main branch]
2015-04-20 10:12:55 -04:00
Michael Schoell
73b396722e Variable Get nodes can be toggled between pure and impure which will branch logic based on value validity, if they are of type Object and a non-array.
#jira UE-9592 - Add an "impure" variable get node, with IsValid check built in

[CL 2514819 by Michael Schoell in Main branch]
2015-04-16 15:35:15 -04:00
Michael Schoell
63b7360ae0 Removed the Blueprint Editor's legacy node menu system.
#jira UE-13391 - Delete old BP menu system (is causing confusion)

#codereview Mike.Beach

[CL 2514361 by Michael Schoell in Main branch]
2015-04-16 11:47:54 -04:00
Michael Schoell
3f52b7d131 In "Region and Language" you can toggle localization of node and pins in all graph editors.
SNodeTitle no longer compares cached node titles to the title the node wants to be to determine a reconstruction, it checks if the schema wants to purge all cached node titles.

#jira UE-8371 - Change Editor language while leaving Blueprint Editor node & pin names in English

[CL 2508681 by Michael Schoell in Main branch]
2015-04-10 14:37:56 -04:00
Ben Cosh
f48004b3d8 Fix to remove the ability to toggle comment balloons in read only graphs.
#UE-13295 - Comment balloons can be toggled in read only graphs
#Branch UE4
#Proj GraphEditor

[CL 2508078 by Ben Cosh in Main branch]
2015-04-10 04:43:31 -04:00
Mikolaj Sieluzycki
a96989f147 Add includes to files to remove the need of including Engine.h.
[CL 2508000 by Mikolaj Sieluzycki in Main branch]
2015-04-10 03:30:54 -04:00