Commit Graph

81 Commits

Author SHA1 Message Date
Michael Schoell
a2863038dc Fixed some dangerous localizable strings and improved Blueprint function/event node title localization support.
#jira UE-14414 - Japanese node labels are not displayed properly

[CL 2528578 by Michael Schoell in Main branch]
2015-04-28 11:31:15 -04:00
Maciej Mroz
4d804326e0 K2Nodes::HasExternalBlueprintDependencies and K2Nodes::HasExternalUserDefinedStructDependencies were changed into HasExternalDependencies and can return native structs
[CL 2525803 by Maciej Mroz in Main branch]
2015-04-25 17:47:39 -04:00
Maciej Mroz
ee6d70dfa1 UE-13981 Input pins of BP node are not updated after a hot reload
#codereview Robert.Manuszewski

[CL 2525773 by Maciej Mroz in Main branch]
2015-04-25 16:18:36 -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
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
Marc Audy
d55fffc485 Strip s when @returns is used instead of @return for a return pin tooltip
[CL 2507177 by Marc Audy in Main branch]
2015-04-09 15:30:49 -04:00
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
Michael Schoell
ece860ea64 Blueprint Call Function nodes will now display localized function names.
FriendlyName metadata is now deprecated and all uses have been removed, a metadata redirector has been setup.

Changed most/all current instances of FriendlyName metadata over to DisplayName.

#jira UE-12048 - Ability to translate Blueprint node names (UFunction names)

[CL 2494033 by Michael Schoell in Main branch]
2015-03-27 12:54:58 -04:00
Maciej Mroz
60c81ec0fa #ue4 BP local variables are created for unconnected "AutoCreateRefTerm" pins, even when default value is empty.
UE-12595 A struct param marked with AutoCreateRefTerm crashes when running Blueprint

#codereview Mike.Beach

[CL 2493092 by Maciej Mroz in Main branch]
2015-03-26 21:41:40 -04:00
Maciej Mroz
74e39a4271 #ue4 -Serialization code in UStructProperty moved to static function
-UScriptStruct::CompareScriptStruct function is accesible in other modules
-Call Function BP node works better with CustomStructureParam.

[CL 2479631 by Maciej Mroz in Main branch]
2015-03-14 20:27:46 -04:00
Marc Audy
d67a694c69 Move member reference out of K2Node and make it usable elsewhere
[CL 2477135 by Marc Audy in Main branch]
2015-03-12 14:17:48 -04:00
Phillip Kavan
4657cfc9d7 [UE-11185] Fix inability to save a Blueprint Function Library asset containing a function that references another function in the same library after it's been loaded.
notes:
- this issue was introduced (by me) in CL# 2368059

change summary:
- modified UK2Node_CallFunction::CreatePinsForFunctionCall() to revert a previous change that incorrectly assigned the BPGC's CDO to the self pin's DefaultObject property for static functions owned by the BPGC. while that works, it creates a problem in that the CDO's class will change during compile-on-load, leaving the reference invalid and in the transient package after the load has completed.
- modified UK2Node_CallFunction::PostReconstructNode() to ensure that the self pin's DefaultObject reference is cleared if the function is owned by a BPGC in the current hierarchy

[CL 2471698 by Phillip Kavan in Main branch]
2015-03-06 18:05:42 -05:00
Saul Abreu
79a26091bf Fixed behavior on FString::ParseIntoArray (muliple delimiters overload) functionality to support optionally culling empty strings. Greatly simplified implementation logic. Output parameter now properly named and taken by reference.
#codereview Steve.Robb, Robert.Manuszewski

[CL 2466824 by Saul Abreu in Main branch]
2015-03-02 15:51:37 -05:00
Laurent Delayen
e586cd3a8f Dev to Main integration from CL #2446290
[CL 2456855 by Laurent Delayen in Main branch]
2015-02-23 15:58:14 -05:00
Matthew Griffin
2e6b022da0 [INTEGRATE] Change 2440547 by Ben.Cosh@BCosh_Home2 on 2015/02/10 17:50:03
Enable CanPasteHere to check in the skeleton class for functions to prevent renamed/new functions being filtered out of the action menu.
	#UE-9087 - BP variable not showing up in context menu for anonymous BP
	#Branch UE4-Releases
	#Proj BlueprintGraph

	ReviewedBy Mike.Beach

[CL 2448566 by Matthew Griffin in Main branch]
2015-02-17 08:53:15 -05:00
Mike Beach
b698bd2144 [INTEGRATE] Change 2440029 by Mike.Beach@Mike.Beach_UE4
[UE-9490] Fixing it so impure K2Nodes that derive from CallFunction nodes, don't mistakenly have their exec pins disconnected.

[CL 2440030 by Mike Beach in Main branch]
2015-02-10 13:23:04 -05:00
Matthew Griffin
775905049e [INTEGRATE] Change 2426499 by Michael.Noland@mnoland-T2784-Reference on 2015/01/30 17:31:35
Editor: Replace ad-hoc _C suffix removal with two new utilities in FBlueprintEditorUtils
	- GetClassNameWithoutSuffix just removes _C (but now only for BP generated classes)
	- GetFriendlyClassDisplayName looks for DisplayName metadata and potentially pulls a nice localized display name if one is available, falling back to removing _C when necessary

[CL 2435096 by Matthew Griffin in Main branch]
2015-02-06 04:43:02 -05:00
Jeff Farris
565b5ccb3d Merged pull request 703 (https://github.com/EpicGames/UnrealEngine/pull/703/) to mainline.
Includes
- Several AActor functions became pure (GetDistanceTo, et al)
- K2Node_CallFunction will auto-rewire execution pins when a node converts from impure to pure.

Thanks bozaro!

#github

[CL 2407421 by Jeff Farris in Main branch]
2015-01-15 12:10:46 -05:00
Michael Schoell
57e719de5e Pasting local variable nodes in graphs outside of scope will no longer show them as being valid.
Pasting local or variable nodes into graphs with local variables of the same name will have them reference the local variable automatically.

#jira UE-6658 - BLUEPRINTS: Can copy/paste local var nodes outside the function

[CL 2391108 by Michael Schoell in Main branch]
2014-12-17 10:00:41 -05:00
Dan Oconnor
d18b18413e #github PR682, fix for crash caused by unresolveable ClassGeneratedBy (probably only for BlueprintGeneratedClasses) from slonopoatmus
just null checking for now, looking for good repro

[CL 2389133 by Dan Oconnor in Main branch]
2014-12-15 16:51:37 -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
Phillip Kavan
30749599b3 [UE-6331] restore input axis accessor functions to BP graph context menu/palette (regression)
change summary:
- reverted previous change to UK2Node_AddComponent; will need to be applicable to all derived UK2Node_CallFunction types
- modified UK2Node_CallFunction::CanPasteNode() to bypass the general function placement check for derived UK2Node_CallFunction types (derived types are considered placeable if compatible)
- modified CanPaletteItemBePlaced() in SBlueprintSubPalette.cpp to skip over the general function placement check for derived UK2Node_CallFunction types (and not just UK2Node_AddComponent)

#codereview Mike.Beach, Michael.Schoell

[CL 2378394 by Phillip Kavan in Main branch]
2014-12-05 17:43:08 -05:00
Phillip Kavan
1cc3b3a098 CIS fix (non-unity)
[CL 2376427 by Phillip Kavan in Main branch]
2014-12-04 15:47:03 -05:00
Phillip Kavan
98c8d00ae0 [UE-5249] BP graph context menu now filters out functions with metadata that would disallow it from being placed into the current graph context
change summary:
- implemented a UK2Node_CallFunction::IsActionFilteredOut() override
- made 'Function' param 'const' in UEdGraphSchema_K2::CanFunctionBeUsedInGraph()

#codereview Mike.Beach, Michael.Schoell

[CL 2375287 by Phillip Kavan in Main branch]
2014-12-03 17:05:59 -05:00