Commit Graph

65 Commits

Author SHA1 Message Date
Jaroslaw Palczynski
cc0f6d9a4e UObject custom constructors.
In order to use new feature user have to change GENERATED_UCLASS_BODY() macro to the new GENERATED_BODY(). Then no constructor is implicitly declared. If there is no constructor declared in UCLASS then PCIP one is declared and defined that passes PCIP down to super-class. On the other hand if there is a constructor declared then UObject system expects to have one of the default or PCIP constructor to initialize a class during loading from disk, default object creation, etc. and it expects that user will declare and define one.

There is a possibility now to create UCLASS with the default constructor (i.e. no PCIP).

New macro is encouraged by standard classes and in-editor wizards templates.

#codereview Robert.Manuszewski

[CL 2325282 by Jaroslaw Palczynski in Main branch]
2014-10-10 04:34:56 -04:00
Fred Kimberley
aade1b1941 Merging the latest changes to the ability system.
Merging using UE4-Fortnite-To-UE4

#codereview David.Ratti, Richard.Hinckley

[CL 2321666 by Fred Kimberley in Main branch]
2014-10-07 15:19:27 -04:00
Jaroslaw Palczynski
37f19fe3fa Server functions passed by non-const reference result in bad code generation.
Fixed.

#ttp 338601

[CL 2321310 by Jaroslaw Palczynski in Main branch]
2014-10-07 11:04:06 -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
Zak Middleton
ae46af7395 #ue4 - Fix HeaderParser so it no longer removes valid uses of "*", " * ", etc from within comments when generating tooltips. Only asterisks from the beginning of lines following only whitespace are removed.
- For example: "A * B" within a java-doc comment used to become "A B".

[CL 2316224 by Zak Middleton in Main branch]
2014-10-01 13:24:30 -04:00
Steve Robb
c1d423f758 Better error message regarding the use of interfaces as properties, suggesting the use of TScriptInterface instead.
#codereview robert.manuszewski

[CL 2314145 by Steve Robb in Main branch]
2014-09-30 09:10:54 -04:00
Jaroslaw Palczynski
65ba5d456f TArray documentation and a coupld of methods deprecation.
Changes mostly in Array.h. The changes in other files are only renames for deprecated functions.

[CL 2312616 by Jaroslaw Palczynski in Main branch]
2014-09-29 04:23:44 -04:00
Jaroslaw Palczynski
78f6bf5355 [GitHub] 337 : Add module gen include dir to ShouldExportClassesForModule
#ttp 343350

[CL 2312600 by Jaroslaw Palczynski in Main branch]
2014-09-29 04:03:28 -04:00
Maciej Mroz
f55429024e CPF_EditInline flag removed (replaced by metadata).
CPF_PersistentInstance  flag added.

#codereview Robert.Manuszewski, Nick.Whiting, James.Golding

[CL 2308211 by Maciej Mroz in Main branch]
2014-09-24 09:09:32 -04:00
Maciej Mroz
7e1c4c25ca 347339 BLOCKER: CRASH: EDITOR: ORION: Occurs when adding a skylight to a scene.
347343 BLOCKER: EDITOR: ORION: Unable to edit or view the light details properties.

[CL 2306682 by Maciej Mroz in Main branch]
2014-09-23 05:53:00 -04:00
Maciej Mroz
8523cb31f0 The CPF_EditInline flag, will force the subobject instance to be persistent, but CLASS_DefaultToInstanced wonÆt imply CPF_EditInline anymore.
#codereview Ben.Zeigler, Robert.Manuszewski

[CL 2305323 by Maciej Mroz in Main branch]
2014-09-22 09:42:15 -04:00
Robert Manuszewski
3144ce46a8 Removing references to MakeCommandlet from code
[CL 2302207 by Robert Manuszewski in Main branch]
2014-09-18 04:05:01 -04:00
Michael Noland
3fbebf9cf5 UnrealHeaderTool: Clarified a couple of error messages that sounded like keywords were limited to only multicast delegate properties (when they are also applicable to functions)
[CL 2286811 by Michael Noland in Main branch]
2014-09-05 17:50:18 -04:00
Michael Schoell
358bea4d7b Resolved issues causing an ensure to fire when compiling a Blueprint with an overide function.
Having a private function with BlueprintImplementableEvent will now report as an error by the UHT.

Having a sealed function with BlueprintImplementableEvent will now report as an error by the UHT.

Having a 'final' function with BlueprintImplementableEvent will now report as an error by the UHT.

#ttp 343140 - BP:  LIVE CRASH:  ensure((Function->FunctionFlags & FUNC_FuncOverrideMatch) == (OverridenFunction->FunctionFlags & FUNC_FuncOverrideMatch))

[CL 2283008 by Michael Schoell in Main branch]
2014-09-03 10:46:58 -04:00
Dan Oconnor
c7f6d3b0bd Removed the error we raised when a const function was exposed as BlueprintPure, tested by marking QAPawn::GetWeapon() BlueprintPure, also ran BlueprintInfoDump commandlet, and no changes were observed in blueprint data
[CL 2281921 by Dan Oconnor in Main branch]
2014-09-02 16:02:17 -04:00
Maciej Mroz
d585b1b677 EditInline tag is removed. It is replaced with Instanced.
[CL 2280604 by Maciej Mroz in Main branch]
2014-09-01 14:15:28 -04:00
Maciej Mroz
8487c15178 Better support for "EditInline"/"EditinlineNew" feature in UEngine::CopyPropertiesForUnrelatedObjects.
Invalid/useless "EditInline" tags removed. UHT generates error when "EditInline" is used for property other than Object reference (or an array).

#codereview Nick.Whiting

[CL 2274828 by Maciej Mroz in Main branch]
2014-08-27 14:39:09 -04:00
Steve Robb
64f7f5fca8 NonPIETransient renamed to NonPIEDuplicateTransient to better reflect that it's a variant of DuplicateTransient, not a variant of Transient.
Bug fix where serialization was not occurring on properties marked as NonPIETransient.

#codereview robert.manuszewski

[CL 2262932 by Steve Robb in Main branch]
2014-08-19 15:07:24 -04:00
Mikolaj Sieluzycki
3558b6168f Add error message when UHT fails to create generated.h.
TTP #339649 UHT fails to create generated.h with no error message.
#codereview Steve.Robb

[CL 2260578 by Mikolaj Sieluzycki in Main branch]
2014-08-18 04:57:34 -04:00
Steve Robb
82fcd06c42 enum class support for UENUMs. Currently only supports enum classes of underlying type uint8, because the property system needs to be updated to handle more than that.
EPropertyReferenceFlags removed too, because it is unused.

#ttp 329394: UHT: Support the C++ "enum class" syntax for UENUMs

#codereview robert.manuszewski

[CL 2252907 by Steve Robb in Main branch]
2014-08-12 08:51:25 -04:00
Steve Robb
3757db36a5 [GitHub] 341 : Enabled class member initializer-awareness to UnrealHeaderTool
Integrated changes, added a test.

#codereview robert.manuszewski

[CL 2248431 by Steve Robb in Main branch]
2014-08-08 09:42:56 -04:00
Maciej Mroz
0781f10f49 Back out revision 297 from //depot/UE4/Engine/Source/Programs/UnrealHeaderTool/Private/HeaderParser.cpp
The fortnite was updated, so the warning is restored.

#codereview Ben.Zeigler

[CL 2247047 by Maciej Mroz in Main branch]
2014-08-07 12:57:45 -04:00
Ben Zeigler
5987522fc2 #UE4 Change blueprint access to static array compile error to be a compile display text. Warnings get converted to errors so we can't use warnings.
[CL 2244727 by Ben Zeigler in Main branch]
2014-08-05 17:01:47 -04:00
Maciej Mroz
e39b3831f1 Warnings and erros about using static arrays with blueprints.
Warnings about using properties without BlueprintReatWrite or BlueprintReadOnly tags.

ttp343139 BP:  PUBLIC CRASH:  ensure(1 == StructProperty->ArrayDim) in FScriptBuilderBase::EmitTermExpr
ttp343016 ensure(1 == StructProperty->ArrayDim) in FScriptBuilderBase::EmitTermExpr

#codereview Nick.Whiting, Michael.Noland, Robert.Manuszewski

[CL 2244501 by Maciej Mroz in Main branch]
2014-08-05 14:16:02 -04:00
Mikolaj Sieluzycki
1158cb6c95 Fix for enum default values parsing in UHT.
TTP #342183: Enum default values do not parse correctly

[CL 2238020 by Mikolaj Sieluzycki in Main branch]
2014-07-31 03:32:31 -04:00