Commit Graph

16 Commits

Author SHA1 Message Date
Michael Schoell
75200e5a0d Cached node titles can now be forced to refresh without iteration over every node.
This will occur with every structural modification to any BP, node titles refresh only when visible.

[CL 2499923 by Michael Schoell in Main branch]
2015-04-02 11:16:23 -04:00
PaulEremeeff
3d878d5a79 PR #996: Fixing PVS-Studio warnings (Contributed by PaulEremeeff)
I have reviewed each change carefully, but it is a large change and I could have missed something! Here is a summary of the types of changes in this CL:
 * Made nullptr checks consistent (the plurality of the changes are of this type)
 * Completed switch statements (IE, switch did not explicitly handle default case, but had unhandled enum entries - this is the second most popular type of fix)
 * Removed unused variables
 * Removed redundant initializations
 * WidgetNavigationCustomization.cpp was fixed by the owner
 * integers converted to floats where result was stored in a float
 * Removed redundent null checks (e.g. before delete statements)
 * Renamed variables to prevent non-obvious shadowing
 * Fixed use of bitwise & when checking for equality to an enum entry (which is often 0)
 * Fixes for some copy paste errors (e.g. FoliageEdMode.cpp)

[CL 2498053 by Dan Oconnor in Main branch]
2015-03-31 20:12:31 -04:00
Jamie Dale
a569f6b356 Fixed code relying on SLATE_TEXT_ATTRIBUTE for STextBlock.
UETOOL-213 - Minimize Slate FString -> FText conversion (remove SLATE_TEXT_ATTRIBUTE)

This fixes any editor/engine specific code that was passing text to Slate as FString rather than FText.

[CL 2399803 by Jamie Dale in Main branch]
2015-01-07 09:52:40 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Michael Schoell
4c00a5d18d Fixes Blueprint compiler error when renaming variables that have placed set nodes in the graph.
The "Get" pin was named in such a way that compiling would result in being unable to find the pin to expand and remove it from the node.

#jira UE-5945 - Unable to compile a Blueprint with renamed variable set node

[CL 2372546 by Michael Schoell in Main branch]
2014-12-01 10:33:00 -05:00
Michael Schoell
0ea59dc61b "Set" variable nodes now have an output pin that acts as a "Get" variable node.
Added an output pin to UK2Node_VariableSet

Changed UK2Node_Variable::CreatePinForVariable to accept an optional pin name.
Changed UK2Node_Variable::RecreatePinForVariable to accept an optional pin name.
 UK2NOde_Variable::DoPinsMatchForReconstruction will now confirm the pins are going in the same direction as well of compatible types before it determines that the pins match.

[CL 2366314 by Michael Schoell in Main branch]
2014-11-20 10:21:19 -05:00
Jaroslaw Palczynski
7c41927cf4 Rename FPostConstructInitializeProperties to something simpler
Changed it with FObjectInitializer.

UECORE-7

[CL 2328384 by Jaroslaw Palczynski in Main branch]
2014-10-14 10:29:11 -04:00
Mike Beach
7b8425fc04 Reverting some perf optimizations that were resulting in stale node text (have to figure out when to clear the cached text).
TTP #346788

[CL 2308590 by Mike Beach in Main branch]
2014-09-24 14:15:13 -04:00
Mike Beach
66b56f0dfd Making it so the blueprint favoriting system works with the new menu system.
[CL 2301204 by Mike Beach in Main branch]
2014-09-17 13:01:38 -04:00
Mike Beach
1424e089f3 Shrinking the template node database by removing the need for function/variable nodes to be cached.
[CL 2295284 by Mike Beach in Main branch]
2014-09-12 12:56:24 -04:00
Mike Beach
42a36b542a Caching tooltips that use FText::Format() (optimizing for the new BP menu system).
[CL 2283623 by Mike Beach in Main branch]
2014-09-03 18:17:44 -04:00
Mike Beach
1b87f7d3ee Deprecating EdGraphNode's GetTooltip() (in exchange for one that returns FText over FString).
[CL 2283396 by Mike Beach in Main branch]
2014-09-03 18:14:09 -04:00
Mike Beach
1dfbb2d829 Optimizing BP node titles (caching any that use FText::Format(), which is slow).
[CL 2282225 by Mike Beach in Main branch]
2014-09-02 19:08:09 -04:00
Michael Schoell
788de6f349 Removed GetNodeNativeTitle from the editor entirely, now uses BuildSourceString to obtain the source string in a more reliable way.
#codereview Justin.Sargent

[CL 2114371 by Michael Schoell in Main branch]
2014-06-23 15:36:50 -04:00
Michael Schoell
0a41fb741e #summary Can search for nodes in the palette menu in Blueprints with both the native name and the localized name.
#add Added UEdGraphNode::GetNodeNativeTitle to return a native title for a node.
#add Added UEdGraphNode::GetNodeSearchTitle to return the native and localized title for a node, together, for searching.
#add Can hold "alt" over a node (in the graph panel, or the palette) to see the native name of the node.

#ttp 331252 - Blueprints: Editor: L10N: Blueprints need to consistently show localized node names and when searching need to search both the localized name and the native name

#codereview justin.sargent

[CL 2044506 by Michael Schoell in Main branch]
2014-04-23 18:30:37 -04:00
Tim Sweeney
324683ce78 Engine source (Main branch up to CL 2026164) 2014-03-14 14:13:41 -04:00