Commit Graph

826 Commits

Author SHA1 Message Date
Maciej Mroz
15e44a1b6e ME Optimization:
- FBPTerminal::InlineGeneratedParameter added - the result of the function is directly used as input parameter, it's not stroed in a lical variable
- FKismetFunctionContext::InlineGeneratedParameter
- MathExpressionHandler - compile (to out intermediate representation) a subgraph using "reverse polish notation" approach
- Math Expression node is not longer expanded
- VMBackend supports InlineGeneratedParameter and InlineGeneratedParameter

#codereview Nick.Whiting, Mike.Beach

[CL 2587365 by Maciej Mroz in Main branch]
2015-06-15 10:54:30 -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
Dan Oconnor
56fc9c7105 [UE-16972] Could find no user action that aws improved (or even effected by) this logic that disconnects pins. This case fails because one pin is of type self and one is a normal object reference, but this function did not provide a class context. It's better to just not run the logic at all, rather than destroy the pin.
#codereview Nick.Whiting

[CL 2586806 by Dan Oconnor in Main branch]
2015-06-12 22:42:10 -04:00
Mike Beach
1fa11b9410 [UE-16996] Properly removing pin watches for params that are being deleted from a custom event node.
[CL 2586299 by Mike Beach in Main branch]
2015-06-12 16:00:56 -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
a2dd30496a Fixed GLEO when a Blueprint references a macro that references a function library that is not referenced by the original Blueprint.
[CL 2584690 by Michael Schoell in Main branch]
2015-06-11 14:48:45 -04:00
sebastian kowalczyk
c46f070ab2 Fixed non unity build.
[CL 2584110 by sebastian kowalczyk in Main branch]
2015-06-11 09:50:36 -04:00
Michael Schoell
0fc7d3151f Changing the Class of a "Spawn Actor from Class" node will no longer disconnect the Result pin's links if they are still valid.
#jira UE-15285 - Changing class on Spawn Actor from Class node breaks connections

[CL 2583256 by Michael Schoell in Main branch]
2015-06-10 16:12:17 -04:00
Michael Schoell
24e8feab5f Math Expression nodes will no longer always appear as changed when doing a diff on a Blueprint.
The Math Expression graph will be completely missing from the diff display, it is regenerated each time and the important detail is the math expression the user inputs. The node's math expression will show up if there are differences between two Blueprints.

#jira UE-9785 - Math expression nodes always appear in BP Diff

[CL 2582830 by Michael Schoell in Main branch]
2015-06-10 11:52:53 -04:00
Michael Schoell
a565081561 Re-implementing a fixup for ComponentBoundEvents that were saved without a DelegateOwnerClass.
#jira UE-16304 - TappyChicken loaded invalid component bound event in node warnings

[CL 2582680 by Michael Schoell in Main branch]
2015-06-10 10:12:27 -04:00
Maciej Mroz
ba111a9270 GenericCreateObject node can be called in Construction Script
UGameplayStatics::SpawnObject checks ClassWithin

#codereview Nick.Whiting, Marc.Audy

[CL 2582478 by Maciej Mroz in Main branch]
2015-06-10 07:03:55 -04:00
Mike Beach
6f87cbe79b Game modules can now extend Blueprint menu filtering, and add in their own menu rejection tests.
[CL 2581938 by Mike Beach in Main branch]
2015-06-09 17:44:15 -04:00
Michael Schoell
af53b28453 Adding pins to a MakeArray node will give the new pin a default values.
#jira UE-16241 - Adding a pin to a MakeArray does not set a default value on the input

[CL 2581682 by Michael Schoell in Main branch]
2015-06-09 15:39:31 -04:00
Michael Schoell
22e9da4f2f Selecting a pin type for a Select node will not fail the first time.
#jira UE-16646  - Unable to change pin type on first attempt

[CL 2581550 by Michael Schoell in Main branch]
2015-06-09 14:13:24 -04:00
Mike Beach
6a94442d7a Adding a way to explicitly hide fields/nodes from Blueprints via config file.
[CL 2581528 by Mike Beach in Main branch]
2015-06-09 14:03:31 -04:00
Maciej Mroz
3b0a6cef0c UE-11946 Support Objects in Blueprint
- GenericCreateObject node
- UGameplayStatics::SpawnObject function
- DontUseGenericSpawnObject class meta data

Missing: runtime mechanism to verify if an object of given class can be spawned using Generic Create Object

#codereview Nick.Whiting, Mike.Beach

[CL 2581001 by Maciej Mroz in Main branch]
2015-06-09 04:42:50 -04:00
Maciej Mroz
c8c81cabed UE-16513 [CrashReport] Adding a Return node to a function that contains a Local array variable then compiling will crash the engine
#codereview Michael.Schoell

[CL 2580032 by Maciej Mroz in Main branch]
2015-06-08 11:32:20 -04:00
Michael Schoell
7d30b9c0a5 Input action and key events will no longer be placeable in Blueprint functions.
Added checks to UK2Node_InputAction::IsCompatibleWithGraph and UK2Node_InputKey::IsCompatibleWithGraph to verify the graph type since these nodes do not directly inherit from K2Node_Event (in ExpandNode they replace themselves with actual events).

#jira UE-12327 - User can incorrectly place events in function graphs

[CL 2580026 by Michael Schoell in Main branch]
2015-06-08 11:28:49 -04:00
Maciej Mroz
c650c628c0 K2Node_ConstructObjectFromClass - links to exposed properties are not broken when the class is changed.
#codereview Nick.Darnell

[CL 2579798 by Maciej Mroz in Main branch]
2015-06-08 06:06:24 -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
Maciej Mroz
fb2c9dc768 Proper class name in node title in K2Node_ConstructObjectFromClass
[CL 2578370 by Maciej Mroz in Main branch]
2015-06-05 09:28:30 -04:00
Maciej Mroz
5f019a3e11 Custom (no-actor, no-component) objects created by Blueprint Callable function have RF_StrongRefOnFrame flag set.
#codereview Mieszko.Zielinski, Michael.Noland, David.Ratti, Nick.Darnell, Terence.Burns, Peter.Sauerbrei

[CL 2578334 by Maciej Mroz in Main branch]
2015-06-05 08:21:26 -04:00
Maciej Mroz
6e1981229c Various improvement in ConstructObjectFromClass K2Node
#codereview Nick.Darnell

[CL 2578251 by Maciej Mroz in Main branch]
2015-06-05 05:04:54 -04:00
Michael Schoell
a7facd9a38 When dragging off a pin in a function graph, local variable nodes will no longer be filtered out of the context menu for placement if they are valid for connection.
Stores the UProperty of the local variable in the node spawner.

#jira UE-16062 - Local variables never appear when dragging off another pin.

[CL 2577367 by Michael Schoell in Main branch]
2015-06-04 14:57:06 -04:00
Michael Schoell
d9bed69e09 Attaching a bool to the "Select" nodes index pin will force the node to update it's pin names even when there are only two options.
#jira UE-9727 - Generic Select Node has different behavior depending on the order you hook up the pins

[CL 2576995 by Michael Schoell in Main branch]
2015-06-04 10:51:39 -04:00