Commit Graph

223 Commits

Author SHA1 Message Date
Andrew Rodham
84307a427e Fixed erroneous shadowed variable
(The variable is not shadowed - the lambda doesn't even have a capture mode!)

[CL 2656079 by Andrew Rodham in Main branch]
2015-08-14 10:20:02 -04:00
Andrew Rodham
14e355b015 Added alignment commands to blueprint graphs
Standard options are available:
 - Align top/middle/bottom/left/center/right
 - Distribute horizontally/vertically

[CL 2656025 by Andrew Rodham in Main branch]
2015-08-14 09:34:31 -04:00
Dan Oconnor
be05748453 #jira UE-19314 CreateEvent nodes now default to self and no longer have an asset picker. Also removing deprecation of Set Timer by Name, which is slower and more error prone than Set Timer by Delegte but otherwise perfectly functional
[CL 2640694 by Dan Oconnor in Main branch]
2015-07-31 14:26:31 -04:00
Michael Schoell
54cfd648ec Fix fallout from CL# 2635959
[CL 2636221 by Michael Schoell in Main branch]
2015-07-28 18:17:18 -04:00
Michael Schoell
ec5aaa577c Functions correctly inherit purity in Blueprints and will update to reflect the current purity state of the inherited function.
Made accessors to get the Function Entry's flags for the generated UFunction and for retrieval of the final skeleton class's UFunction's flags.

#jira UE-17804 - Overridden functions in Child Blueprints cannot be converted to/from pure functions

[CL 2635959 by Michael Schoell in Main branch]
2015-07-28 16:17:47 -04:00
Maciej Mroz
76e1e81834 #jira UE-18799 Compiling a Blueprint that uses a Select node with two different variations of Actor will crash the Editor in 4.9
[CL 2625602 by Maciej Mroz in Main branch]
2015-07-20 04:31:26 -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
e934c69761 Blueprints: Changed display of FRotator values to be XYZ and in that order (RPY) instead of PYR
#jira UE-17360

[CL 2614172 by Michael Noland in Main branch]
2015-07-08 17:06:15 -04:00
Michael Schoell
85e1827756 Object Reference, Class Reference, Asset ID, Asset Class ID pin types have been spun off into a sub-menu on the item to reduce duplication of these items in the listview. Selecting the item in the main tree will auto-select object reference as the pin type for the specified Blueprint type.
Spun out management of sub-menus in SMultiBox to the new class SMenuOwner for reusability.

Fixed potential issue with table views that would prevent them from stopping to be marked as hovered.

Added SSubMenuHandler to provide duplicate functionality to SMenuEntryBlock including deferred menu opening and close, and allowing the user's mouse to cross over other sibling items in order to get to the currently opened sub-menu.

#jira UE-16951 - Move assetptr references from the type selector to an option on the variable

[CL 2609080 by Michael Schoell in Main branch]
2015-07-02 10:25:42 -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
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
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
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
Maciej Mroz
435b64dfe7 Fixed a hard to reproduce Blueprint Editor crash
[CL 2586846 by Maciej Mroz in Main branch]
2015-06-13 09:54:57 -04:00
Michael Schoell
c55cbf9af7 Can promote pins to local variables in Blueprint function graphs (or their child graphs).
Option only appears when available, will pull the default value over.

#jira UE-6273 - BLUEPRINTS: Add "promote to local var" context menu option

[CL 2584770 by Michael Schoell in Main branch]
2015-06-11 15:39:07 -04:00
Michael Schoell
91061b9d85 Fixed uses of FindFunctionByName that did not use GET_FUNCTION_NAME_CHECKED.
#jira UE-13949 - Fix various uses of FindFunction that use string literals instead of GET_FUNCTION_NAME_CHECKED

[CL 2578531 by Michael Schoell in Main branch]
2015-06-05 11:45:49 -04:00
Jeff Farris
d244d227bc Fixed several shadow variable warnings
#codereview: Lukasz.Furman, Michael.Schoell, Dan.Oconnor, Eric.Newman, Gil.Gribb

[CL 2575931 by Jeff Farris in Main branch]
2015-06-03 14:47:53 -04:00
Michael Schoell
d3c4f18bcd Can right click on any node to search for references of it. Does initial search only in current Blueprint.
Localization fixes for Find-in-Blueprints so it will again search the current and native language.

CallFunction and CustomEvents now store their non-friendly "native" names. These will not actually appear in search results, but will be compared while searching to determine if the node matches the results.

Gathering Blueprint search data will now force friendly names to true while it gathers so gathered data does not differ based on the setting.

#jira UE-15901 - Right click a custom event to get a list of all blueprints that are calling the custom event

[CL 2572814 by Michael Schoell in Main branch]
2015-06-01 14:36:32 -04:00
Michael Schoell
cf62938645 When searching the pin type selector, items will no longer appear blank.
Fixed an issue where unloaded items appeared with "Error!", FriendlyName was not properly set before the description cached.

#jira UE-16285 - Searching in a type dropdown causes all type names to become blank

[CL 2570559 by Michael Schoell in Main branch]
2015-05-29 11:14:00 -04:00
Maciej Mroz
50597210dc PC_Asset type in named Asset ID. PC_AssetClass type is named Class Asset ID.
#codereview Nick.Whiting

[CL 2568218 by Maciej Mroz in Main branch]
2015-05-28 04:52:58 -04:00
Maciej Mroz
206fd32952 UE-15907 Opening the Pin Type Selector is way too slow
Optimization.

#codereview Michael.Schoell

[CL 2568155 by Maciej Mroz in Main branch]
2015-05-28 03:57:54 -04:00