Commit Graph

812 Commits

Author SHA1 Message Date
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
Michael Schoell
1169477ed4 Can use unicode characters in Math Expression nodes. All unicode "letters" are now allowed for variable/input/output names. This does not extend to symbols and only the underscore symbol is still allowed.
Added FText::IsLetter to check a TCHAR to see if it is a letter according to ICU.

#jira UE-17396 - Math Expression Node does not support unicode variable names

[CL 2606453 by Michael Schoell in Main branch]
2015-06-30 17:02:10 -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
fad12ffd2c Input Touch event node cannot be placed in function or macro graphs.
#jira UE-17477 - InputTouch event is not filtered; place-able in functions and macros

[CL 2605793 by Michael Schoell in Main branch]
2015-06-30 11:26:15 -04:00
Maciej Mroz
e83aa6ce28 UE-17499 Could use a way to add custom type auto-conversions for blueprints - improvements
Removed hardcoded functions from UEdGraphSchema_K2::SearchForAutocastFunction.

[CL 2605281 by Maciej Mroz in Main branch]
2015-06-30 05:20:10 -04:00
Jeff Farris
39e3a70db0 Fixed nonunity compile error in EdGraphSchema_K2.cpp
[CL 2604599 by Jeff Farris in Main branch]
2015-06-29 16:03:22 -04:00
Maciej Mroz
23bb4fc3e8 UE-17499 Could use a way to add custom type auto-conversions for blueprints
New FunctionMetadta "BlueprintAutocast" was added.

todo: add warning in UHT
todo: remove hardcoded functions from UEdGraphSchema_K2::SearchForAutocastFunction

#codereview Mike.Beach

[CL 2604137 by Maciej Mroz in Main branch]
2015-06-29 12:18:57 -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
Michael Schoell
daca644059 Fix for interface communication with streaming levels not working unless converted ULevelStreaming pin to UObject pin first.
[CL 2602832 by Michael Schoell in Main branch]
2015-06-26 16:04:17 -04:00
Michael Schoell
c246c1f538 Math Expression nodes will again correctly lookup by the display name of a function.
Changed metadata lookups that were still targetting FriendlyName to lookup the DisplayName.

#jira UE-17602 - Unable to use floor() in math expression node (display name), must use ffloor()

[CL 2602420 by Michael Schoell in Main branch]
2015-06-26 11:59:50 -04:00
Dan Oconnor
d02402da52 [UEBP-60] This saves 3s on editor load/PIE of large projects. Simple optimization for the most common case of RewireOldPinsToNewPins
[CL 2601312 by Dan Oconnor in Main branch]
2015-06-25 17:07:39 -04:00
Phillip Kavan
5948f6ee41 [UE-16820] Provide ability to access class default property values at runtime in a Blueprint script.
#codereview Maciej.Mroz, Nick.Whiting

[CL 2600715 by Phillip Kavan in Main branch]
2015-06-25 12:09:53 -04:00
Maciej Mroz
9c65f62697 UE-17607 Crash attempting to vect != vect in Math Expression Node
#codereview Mike.Beach

[CL 2600255 by Maciej Mroz in Main branch]
2015-06-25 04:54:12 -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
Michael Schoell
40e00daae9 Can no longer split pins on Blueprint nodes if the struct does not have any valid properties.
#jira UE-17150 - Input pin disappears if split on GetScreenSpacePosition node

[CL 2598981 by Michael Schoell in Main branch]
2015-06-24 11:23:23 -04:00
Michael Schoell
913b55c8e0 Support for streaming level communication via interfaces.
Changed the K2Node_Message to expand and attempt to cast the incoming reference as a ULevelStreaming reference, get the level script actor, and cast that to the interface.

Exposed for Blueprints (BP internal use only) ULevelStreaming::GetLevelScriptActor

All levels can now have a BP interface added to them.

#jira UE-16706 - Implement Level Blueprint Interface Communication

[CL 2597586 by Michael Schoell in Main branch]
2015-06-23 14:40:21 -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
Michael Schoell
9347859ab2 Math expression functions without any parameters will still provide their end parenthesis in the Math Expression node.
#jira UE-17418 - Math Expression node unclosed parenthesis in name if expression starts with rand()

[CL 2597330 by Michael Schoell in Main branch]
2015-06-23 12:37:06 -04:00
Maciej Mroz
ac0c2317a3 CIS fix - missing "includes" were added.
[CL 2595878 by Maciej Mroz in Main branch]
2015-06-22 14:46:09 -04:00
Maciej Mroz
5ab6dc7ad5 Better validation in Result Node.
[CL 2595677 by Maciej Mroz in Main branch]
2015-06-22 13:10:43 -04:00
Maciej Mroz
22b3cfb286 BP - return node improvements:
- UE-14092 Cannot create a return node with an execution pin only for a function
- UE-7849 Being able to have multiple return nodes for a function
- minor fixes

#codereview Nick.Whiting, Mike.Beach

[CL 2595496 by Maciej Mroz in Main branch]
2015-06-22 11:19:37 -04:00
Marc Audy
e7d1784593 Buildwatcher - Fix shadow variables
#codereview Dan.Oconnor

[CL 2593375 by Marc Audy in Main branch]
2015-06-19 09:31:08 -04:00