Commit Graph

122 Commits

Author SHA1 Message Date
Michael Schoell
58ff1dcbd9 Can right click on any variable get/set node to replace it with a member or local variable.
#ttp 346457 - NUXF-66 Can't rename a 'Set Variable' node variable
#NUX

[CL 2327544 by Michael Schoell in Main branch]
2014-10-13 15:07:57 -04:00
Mike Beach
3e920fcfdc Properly cleaning up level-script references on level change.
TTP #349207

[CL 2326003 by Mike Beach in Main branch]
2014-10-10 17:48:56 -04:00
Mike Beach
2d68c1fd7b Setting up a call function node with a dynamic output value (determined by an class picker input). #NUX
TTP #345805

[CL 2324254 by Mike Beach in Main branch]
2014-10-09 12:04:45 -04:00
Michael Schoell
348ad15aee Pasting invalid self variables into Macro Blueprints is no longer allowed and promoting or replacing variables with missing properties is no longer an option.
Pasting any nodes into interface BPs is not possible.

When right clicking on a variable node with a missing property, you can replace the node with any valid local variables (in functions).

#ttp 340631 - bp: macros: one can create variables within macros by pasting them into a macro from a blueprint (not sure if this is intentional because the create variable ui has been removed)

[CL 2321738 by Michael Schoell in Main branch]
2014-10-07 16:04:29 -04:00
Phillip Kavan
222914ba50 [346160] Do not allow unsafe functions to be placed in a construction script.
- Modified CanPaletteItemBePlaced() in SBlueprintSubPalette.cpp to leverage the UEdGraphSchema_K2::CanFunctionBeUsedInClass() API.
- Modified UEdGraphSchema_K2::CanFunctionBeUsedInClass() to accept an optional parameter for a "reason" FText on failure and added localizable strings.
- Added a UK2Node_CallFunction::CanPasteHere() override impl to also invoke UEdGraphSchema_K2::CanFunctionBeUsedInClass() in order to gate function nodes on paste into a graph.

#codereview Marc.Audy,Mike.Beach

[CL 2320925 by Phillip Kavan in Main branch]
2014-10-07 00:54:59 -04:00
Nick Darnell
6fbae11592 Blueprint - We now support making FText an exposed on spawn parameter.
[CL 2317619 by Nick Darnell in Main branch]
2014-10-02 14:23:34 -04:00
Mike Beach
f7ae7eeca9 Bubbling up tagged make/break functions for struct pins (vector, rotator, etc.).
[CL 2316111 by Mike Beach in Main branch]
2014-10-01 12:14:30 -04:00
Max Preussner
121fccd2ab Code and documentation cleanup pass
- removed dummy UClasses (no longer needed)
- removed file header comments (not used)
- removed duplicated function documentation in cpp files
- documentation cleanup, punctuation, spelling etc.
- pragma once include guards (now work on all platforms)
- relative public includes (are auto-discovered by UBT)
- fixed too many/too few line breaks
- deleted empty files
- missing override
- NULL to nullptr

[CL 2305058 by Max Preussner in Main branch]
2014-09-21 20:35:48 -04:00
Marc Audy
c72d1c03a8 Fix spelling of signature
[CL 2304887 by Marc Audy in Main branch]
2014-09-21 20:33:57 -04:00
Mike Beach
6ce6e4dcaf Guarding (and not blocking) failed pin type lookups... now with more informative error text (to help catch the problematic category).
(TTP #346394)

[CL 2301201 by Mike Beach in Main branch]
2014-09-17 12:56:36 -04:00
James Golding
9a4ddbfb1e Add 'raycast' and 'sweep' keywords to BP query functions
Stop Kismet library headers being globally included
#codereview nick.whiting

[CL 2300737 by James Golding in Main branch]
2014-09-17 05:39:56 -04:00
Nick Darnell
9a123fb648 Blueprint - Preventing crashes when the target function fails to be located when checking for WorldContext metadata.
#codereview Marc.Audy

[CL 2300336 by Nick Darnell in Main branch]
2014-09-16 19:17:35 -04:00
Marc Audy
156941adcf Switch Node Polish
* Name and String have + Add Pin button
* Enum doesn't display Remove Execution Pin on right click
* Enum doesn't display Show Default Pin in details view
* All types have proper default in selection box

[CL 2299436 by Marc Audy in Main branch]
2014-09-16 10:25:25 -04:00
Richard Hinckley
c9e151b886 Minor cleanup, added a field to Schema for the "Item" output pin. Replaced hardcoded TEXT("Item") in my own code, but left other instances for now.
[CL 2298169 by Richard Hinckley in Main branch]
2014-09-15 10:40:56 -04:00
Mike Beach
8c7209baf6 Adding metadata to nodes that helps track which ones were systematically added as "default" nodes.
[CL 2295774 by Mike Beach in Main branch]
2014-09-12 18:37:04 -04:00
Marc Audy
b6e79ff641 Prevent functions that require a World Context from being placed in a Graph that does not implement GetWorld() and report a warning for functions that already exist
A function with a World Context pin can also be flagged with new metadata CallableWithoutWorldContext which indicates it can be used in any context, even if GetWorld() is not implemented, the called function is responsible for providing a working alternative when World is null
World Centric functions can also be used in classes tagged with the ShowWorldContextPin metadata which indicates the class has a well defined method of supplying the world context that will be connected

[CL 2292921 by Marc Audy in Main branch]
2014-09-10 16:39:25 -04:00
Marc Audy
17a03e1b0a Reorganize CanFunctionBeUsedInClass to make to easier to understand and modify
#codereview Nick.Whiting

[CL 2292863 by Marc Audy in Main branch]
2014-09-10 15:59:01 -04:00
Marc Audy
fcaf05abab Change ShowHiddenSelfPins to ShowWorldContextPin
[CL 2292818 by Marc Audy in Main branch]
2014-09-10 15:23:52 -04:00
Max Preussner
4ce6d37a29 BP: Fix for BP Editor assertion when BP pin category name is empty
#CodeReview: marc.audy

[CL 2291389 by Max Preussner in Main branch]
2014-09-09 16:50:33 -04:00
Maciej Mroz
1855e04938 BP: AutoCreateRefTerm meta-data affects only the selected param.
ttp345754 LIVE: BLUEPRINT: CRASH: 'Get Array' node disconnected itself, causes crashes when reconnected.

#codereview Nick.Whiting, Mike.Beach

[CL 2290640 by Maciej Mroz in Main branch]
2014-09-09 12:16:13 -04:00
Marc Audy
c934dec9f7 PinSelector drop down now uses same labels for variables as the pin tooltips do
[CL 2289527 by Marc Audy in Main branch]
2014-09-08 12:56:34 -04:00
Marc Audy
5220403e0d Export Type text from Generate Blueprint API Commandlet
Display type text separate from tooltip in blueprint API docs
Fix filename for json output when no explicit filename provided

[CL 2286849 by Marc Audy in Main branch]
2014-09-05 17:51:04 -04:00
Marc Audy
4ad81351db Change how types are displayed in blueprint pin tooltips
Deprecate TypeToString
Make ConstructBasicPinTooltip take FText for Description
Make SpawnActorFromClass pin tooltips consistent with other nodes

[CL 2286449 by Marc Audy in Main branch]
2014-09-05 13:06:18 -04:00
Marc Audy
ea2c9c4310 Make K2Schema well-known struct cache, static and used consistently
[CL 2285234 by Marc Audy in Main branch]
2014-09-04 17:31:51 -04:00
Marc Audy
615ba65656 Push EdGraphSchema constant variables out of UPROPERTY in to proper static variables
Remove unused PC_Meta

[CL 2284820 by Marc Audy in Main branch]
2014-09-04 13:55:54 -04:00