Commit Graph

112 Commits

Author SHA1 Message Date
Robert Manuszewski
f9cdeb96cd Copying //UE4/Dev-Core to //UE4/Main
==========================
MAJOR FEATURES + CHANGES
==========================

Change 2717513 on 2015/10/06 by Robert.Manuszewski@Robert_Manuszewski_EGUK_M1

	GC and WeakObjectPtr performance optimizations.

	- Moved some of the EObjectFlags to EInternalObjectFlags and merged them with FUObjectArray
	- Moved WeakObjectPtr serial numbersto FUObjectArray
	- Added pre-allocated UObject array

Change 2716517 on 2015/10/05 by Robert.Manuszewski@Robert_Manuszewski_EGUK_M1

	Make SavePackage thread safe UObject-wise so that StaticFindObject etc can't run in parallel when packages are being saved.

Change 2721142 on 2015/10/08 by Mikolaj.Sieluzycki@Dev-Core_D0920

	UHT will now use makefiles to speed up iterative runs.

Change 2726320 on 2015/10/13 by Jaroslaw.Palczynski@jaroslaw.palczynski_D1732_2963

	Hot-reload performance optimizations:
	1. Got rid of redundant touched BPs optimization (which was necessary before major HR fixes submitted earlier).
	2. Parallelized search for old CDOs referencers.

Change 2759032 on 2015/11/09 by Graeme.Thornton@GThornton_DesktopMaster

	Dependency preloading improvements
	 - Asset registry dependencies now resolve asset redirectors
	 - Rearrange runtime loading to put dependency preloads within BeginLoad/EndLoad for the source package

Change 2754342 on 2015/11/04 by Robert.Manuszewski@Robert_Manuszewski_Stream1

	Allow UnfocusedVolumeMultiplier to be set programmatically

Change 2764008 on 2015/11/12 by Robert.Manuszewski@Robert_Manuszewski_Stream1

	When cooking, don't add imports that are outers of objects excluded from the current cook target.

Change 2755562 on 2015/11/05 by Steve.Robb@Dev-Core

	Inline storage for TFunction.
	Fix for delegate inline storage on Win64.
	Some build fixes.
	Visualizer fixes for new TFunction format.

Change 2735084 on 2015/10/20 by Jaroslaw.Surowiec@Stream.1.JarekSurowiec

	CrashReporter Web - Search by Platform
	Added initial support for streams (GetBranchesAsListItems, CopyToJira)

Change 2762387 on 2015/11/11 by Steve.Robb@Dev-Core

	Unnecessary allocation removed when loading empty files in FFileHelper::LoadFileToString.

Change 2762632 on 2015/11/11 by Steve.Robb@Dev-Core

	Some TSet function optimisations:

	Avoiding unnecessary hashing of function arguments if the container is empty (rather than the hash being empty, which is not necessarily equivalent).
	Taking local copies of HashSize during iterations.

Change 2762936 on 2015/11/11 by Steve.Robb@Dev-Core

	BulkData zero byte allocations are now handled by an RAII object which owns the memory.

Change 2765758 on 2015/11/13 by Steve.Robb@Dev-Core

	FName::operator== and != optimised to be a single comparison.

Change 2757195 on 2015/11/06 by Jaroslaw.Surowiec@Stream.1.JarekSurowiec

	PR #1305: Improvements in CrashReporter for Symbol Server usage (Contributed by bozaro)

Change 2760778 on 2015/11/10 by Jaroslaw.Surowiec@Stream.1.JarekSurowiec

	PR #1725: Fixed typos in ProfilerCommon.h; Added comments (Contributed by BGR360)

	Also fixed starting condition.

Change 2739804 on 2015/10/23 by Robert.Manuszewski@Robert_Manuszewski_Stream1

	PR #1470: [UObjectGlobals] Do not overwrite instanced subobjects with ones from CDO (Contributed by slonopotamus)

Change 2744733 on 2015/10/28 by Steve.Robb@Dev-Core

	PR #1540 - Specifying a different Saved folder at launch through a command line parameter

	Integrated and optimized.

#lockdown Nick.Penwarden

[CL 2772222 by Robert Manuszewski in Main branch]
2015-11-18 16:20:49 -05:00
Maciej Mroz
91e2cb19e6 Potential fix for Fortnite cook crash. HasExternalDependencies function gathers types of parameters in a (called or defined) function.
#codereview Mike.Beach, Jamie.Dale

[CL 2702290 by Maciej Mroz in Main branch]
2015-09-23 05:35:44 -04:00
Dan Oconnor
f0ab40178c Nonunity fix
[CL 2687449 by Dan Oconnor in Main branch]
2015-09-10 21:20:27 -04:00
Michael Schoell
7646d52af8 Toggling a function to pure will automatically remove all breakpoints from call sites.
#jira UE-20157 - Changing a node to a pure function does not remove breakpoints from node and they must be turned into an impure function again

[CL 2686433 by Michael Schoell in Main branch]
2015-09-10 11:50:14 -04:00
Phillip Kavan
2a531399a3 [UE-12263] Additional suggestion (per review) to guard against unintentional log spam.
#codereview Mike.Beach

[CL 2670254 by Phillip Kavan in Main branch]
2015-08-26 18:44:36 -04:00
Phillip Kavan
c0fdbd5d1b [UE-12263] Eliminate potential FMemberReference::ResolveMember() log spam at startup/load time.
change summary:
- modified UK2Node_CallFunction::Serialize() to bypass enabled state validation when not necessary.

#codereview Mike.Beach

[CL 2670191 by Phillip Kavan in Main branch]
2015-08-26 18:26:01 -04:00
Phillip Kavan
3c858b79aa [UE-12263] Add ability to mark BlueprintCallable functions as "DevelopmentOnly" - by default, these nodes will be compiled out of Blueprint class function graphs at cook/package time.
change summary:
- deprecated the 'UEdGraphNode::bIsNodeEnabled' flag & added fixup code for serialization (load)
- added support for pruning "disabled" nodes at compile time w/o breaking existing flow in the source graph.
- modified function call nodes to look for new "DevelopmentOnly" UFUNCTION metadata and disable when found.
- added UEdGraphNode::IsNodeEnabled(), Enable() and Disable() APIs. also added a new 'bUserSetEnabledState' flag.
- added the UEdGraphNode::IsDevelopmentMode() API; subclasses can override to provide additional functionality if necessary.
- added a new 'UCookerSettings::bCompileBlueprintsInDevelopmentMode' flag to control whether or not Blueprints are compiled in development mode at cook time (accessible in Project Settings->Cooker); defaults to OFF.
- (experimental) added a "Compile Options" section to the Blueprint graph node context menu to allow users to explicitly enable or disable nodes.
- (experimental) added a BPGC setting to allow users to optionally override the cooker default setting for the development/release compile switch (UE-12270, WiP).
- the experimental features above are gated by a new 'UBlueprintEditorSettings::bAllowExplicitImpureNodeDisabling flag' (accessible in Editor Settings->Blueprint Editor); defaults to OFF for now.

[CL 2661302 by Phillip Kavan in Main branch]
2015-08-19 14:13:40 -04:00
Richard Hinckley
5b7adab09e Added "//~" and "/*~" support to Unreal header parsing, so that comments can be ignored instead of being made into tooltips, mirroring the recent Doxygen filter feature. Also added support to keep @note blocks visible in UFUNCTIONS.
[CL 2630494 by Richard Hinckley in Main branch]
2015-07-23 09:27:43 -04:00
Richard Hinckley
556e8bf4ec Removing pragma optimize.
[CL 2628880 by Richard Hinckley in Main branch]
2015-07-22 10:03:50 -04:00
Richard Hinckley
624c0bc7a3 [UE-17240] - Changing "@see" to "See:"in tooltips.
[CL 2627965 by Richard Hinckley in Main branch]
2015-07-21 15:41:15 -04:00
Maciej Mroz
d7e348d1e0 Select node creates local variable for index input.
#jira UE-18533 Select node crashes

[CL 2619913 by Maciej Mroz in Main branch]
2015-07-14 06:57:53 -04:00
Michael Schoell
f41f1b82c4 Hidden pins generated from native functions will correctly use their default values.
#jira UE-18475 - HidePin metadata in UFUNCTION macro causes default value to be ignored

[CL 2618672 by Michael Schoell in Main branch]
2015-07-13 15:22:41 -04:00
Marc Audy
0e5c8b64c5 Add HideSelfPin metadata for blueprint callable functions which will make the target pin hidden and not connectable
#codereview Mike.Beach

[CL 2615080 by Marc Audy in Main branch]
2015-07-09 10:25:29 -04:00
Michael Noland
93f5f7871f Blueprints: Added support for expressing a per-parameter DisplayName using the markup UPARAM(DisplayName="Something neat") before the parameter declaration
This allows renaming parameters without using a K2ParamRedirect, and to use names that are not legal C++ identifiers

UFUNCTION(BlueprintPure, ...)
static void DoSomethingAwesome(UPARAM(DisplayName="Awesome Param") float BoringParam);

#codereview nick.whiting

[CL 2614169 by Michael Noland in Main branch]
2015-07-08 17:03:53 -04:00
Michael Schoell
49c96e1732 Fix shadow variable issue.
[CL 2607432 by Michael Schoell in Main branch]
2015-07-01 10:07:48 -04:00
Michael Noland
3c99dc668f Fixed up a few whitespace issues
[CL 2606940 by Michael Noland in Main branch]
2015-06-30 22:12:07 -04:00
Michael Schoell
dd3a91b825 Call Function nodes will no longer change the function reference when duplicating the node or duplicating the entire Blueprint.
UK2Node_CallFunction::EnsureFunctionIsInBlueprint checks for the self pin being connected, if it is it will not change the function reference.

#jira UE-17073 - Duplicated blueprints cannot access casted class nodes

[CL 2606495 by Michael Schoell in Main branch]
2015-06-30 17:18:11 -04:00
Phillip Kavan
f864e2455c [UE-14914] Prevent function parameters from being autowired when intended for internal use only.
change summary:
- added a new "InternalUseParam" UFUNCTION() meta to support tagging function parameters as internal use only (=> hidden | not connectable)
- added a UK2Node_CallFunction::IsConnectionDisallowed() override method; returns 'true' if the 'bNotConnectable' flag is set on the node's pin (and will emit a compile error in existing projects if something is connected to it)
- modified FBlueprintEditorUtils::GetHiddenPinsForFunction() to accept an optional 'InternalPins' TSet as an output; on return, this will contain the subset of hidden pins that are marked as "InternalUseParam"
- modified UK2Node_CallFunction::CreatePinsForFunctionCall() to set the 'bNotConnectable' pin attribute to 'true' if "InternalUseParam == '<PinName>'" is included within the UFunction metadata
- modified the AActor::AddComponent UFUNCTION() decl to switch the "HidePin" meta to "InternalUseParam" for the 'ComponentTemplateContext' parameter (because it should not be connectable)
- modified UK2Node_CallFunction::NotifyPinConnectionListChanged() to refresh the node to hide pins corresponding to internal-only params once the (invalid) connection in an existing project has been broken

#codereview Mike.Beach

[CL 2606203 by Phillip Kavan in Main branch]
2015-06-30 14:42:07 -04:00
Phillip Kavan
8ed4059fd6 [UE-15480] Restore ability to link GetClass() function call node output pin subtype to the input pin subtype (revised initial fix).
change summary:
- restored modification to FDynamicOutputHelper::GetPinClass() to include object reference pin types
- restored modification to FDynamicOutputHelper::IsTypePickerPin() to include the PC_Object category
- restored modification to the UGameplayStatics::GetObjectClass() UFUNCTION declaration to include 'DeterminesOutputType' metadata
- modified FDynamicOutputHelper::GetPinClass() to consider connections to a literal 'self' reference; resolves a potential BP compilation error that was introduced with the initial fix

#codereview Mike.Beach, Dan.OConnor

[CL 2605968 by Phillip Kavan in Main branch]
2015-06-30 12:42:39 -04:00
Michael Schoell
f928f7972b Copy and pasting a K2Node_CallFunction with an interface pin for the SelfPin will no longer change the SelfPin into a normal Object Reference pin.
UK2Node_CallFunction::EnsureFunctionIsInBlueprint will check the function's owner class to see if it is a child of UInterface and will not allow changes to the FunctionReference if it is.

#jira UE-17565  - Copy and pasting an interfaceCall node pasted a different node.

[CL 2604126 by Michael Schoell in Main branch]
2015-06-29 12:13:17 -04:00
Dan Oconnor
3e0ea670f1 [UEBP-60] Skipping tooltip generation for transient pins
[CL 2599950 by Dan Oconnor in Main branch]
2015-06-24 21:45:09 -04:00
Dan Oconnor
4a011eb4cc Back out changelist 2592119, causes errors in several blueprints in Mike's circular reference tests
[CL 2597502 by Dan Oconnor in Main branch]
2015-06-23 13:59:09 -04:00
Phillip Kavan
6e67897d5e [UE-15480] The output pin subtype for a GetClass function call node is now linked to the input pin's subtype.
change summary:
- modified FDynamicOutputHelper::GetPinClass() to include object reference pin types
- modified FDynamicOutputHelper::IsTypePickerPin() to include the PC_Object category
- modified the UGameplayStatics::GetObjectClass() UFUNCTION declaration to include 'DeterminesOutputType' metadata

#codereview Mike.Beach

[CL 2592119 by Phillip Kavan in Main branch]
2015-06-18 12:10:18 -04:00
Mike Beach
8164028b41 [UE-17011] If a function doesn't have any extra keywords, make sure we still include the compact title at the very least.
#codereview Michael.Schoell

[CL 2588760 by Mike Beach in Main branch]
2015-06-16 11:53:17 -04:00
Michael Schoell
a5e29efb5a Pin tooltips on Call Function nodes in Blueprints will no longer grow with each compile or change to the Blueprint.
#jira UE-16997 - Tooltip for boolean checkbox on blueprint node grows with every click

[CL 2588700 by Michael Schoell in Main branch]
2015-06-16 11:25:01 -04:00