Commit Graph

8 Commits

Author SHA1 Message Date
Maciej Mroz
74dd18c715 UE-7848 BP nodes are executed after the return node is reached
Function result node generates KCST_GotoReturn statement.
"The execution path doesn't end with a return node." Is now a note.

#codereview Mike.Beach, Michael.Noland

[CL 2508745 by Maciej Mroz in Main branch]
2015-04-10 15:11:43 -04:00
Ben Marsh
0ae3bc49f4 [INTEGRATE] Change 2422698 by Chris.Gagnon@chris.gagnon_T4696 on 2015/01/28 15:20:27
Fix for being able to add a setter for the SCS generated component variables. UE-8135
	This changed the SCS added component variables to be CPF_BlueprintReadOnly which means that blueprints that include setters will no longer compile.

[CL 2425873 by Ben Marsh in Main branch]
2015-01-30 11:07:49 -05:00
Michael Schoell
d0f3e3d7e7 Merging PR #680 to fix crashes when casting an Interface pin to an Object pin inside of Blueprints.
#jira UE-6503 - GitHub 680 : Fix: UE-6268: Implict cast stack corruption
#jira UE-6268 - The Editor may crash in PIE mode if the Engine was built from source code using the Debug Editor configuration.

[CL 2391686 by Michael Schoell in Main branch]
2014-12-17 16:12:53 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Phillip Kavan
ead8c218f1 [UE-2345] BP - enforce const-correctness in native const class method overrides
this change introduces enforcement of 'const-correctness' into implemented function graphs.

summary:
if you have a function declared in C++ like this:
UFUNCTION(BlueprintImplementableEvent)
int32 MyFunctionThatReturnsSomeValue() const;
if you implement that (BPIE) function in a Blueprint that's parented to that native class, it will now be flagged as 'const'. this makes any properties of 'self' read-only within the context of that graph, which means the compiler will emit an error if you try to set a property or otherwise call a non-const, non-static function with 'self' as the target.
if there happens to already be an implemented const function in a Blueprint that was in place prior to this change, the compiler will emit a warning instead of an error, in order to allow existing Blueprints that may currently be "violating" const within the context of a const BPIE function to still compile, while still alerting to issues that should probably be addressed.
notes:
1) this also applies to BlueprintNativeEvent (BPNE) implementations, and also when implementing BPIE/BPNE interface methods that are also declared as const
2) a const BPIE/BPNE function with no return value and no output parameters will be implemented as a "normal" impure function, and not as an event as in the non-const case
3) a const BPIE/BPNE function with a return value and/or output parameters will currently be implemented as a pure function, regardless of whether or not BlueprintCallable is specified
4) this CL also retains some consolidation of static function validation code that i had previously done, mostly to allow static functions to more easily be whitelisted for const function graphs
#codereview Nick.Whiting, Michael.Noland

[CL 2368059 by Phillip Kavan in Main branch]
2014-11-21 17:47:17 -05:00
Michael Schoell
1585defb9a Local variables will no longer stop working when renaming a function.
#ttp 337236 - BP: Local variables cannot be found after adding and renaming a new function

[CL 2089692 by Michael Schoell in Main branch]
2014-05-30 10:43:00 -04:00
Michael Schoell
7fe3dd5fd9 Local function variables in Blueprints now utilize the Get/Set nodes
#change Deprecated UK2Node_LocalVariable
#change UK2Node_LocalVariable will replace itself with a Get and any Assign nodes it is hooked up to with a Set node, will also delete itself from Animation rule graphs that they should not have been allowed to be placed in

#ttp 332158 - BP:  Make local variables use standard get / set nodes, instead of the assigned named local nodes

[CL 2068725 by Michael Schoell in Main branch]
2014-05-09 17:43:40 -04:00
Tim Sweeney
324683ce78 Engine source (Main branch up to CL 2026164) 2014-03-14 14:13:41 -04:00