Commit Graph

753 Commits

Author SHA1 Message Date
Robert Manuszewski
13573e3787 Refactoring compiled-in FProperty constructors so that they have the same signature
#jira SOL-1981
#rb Steve.Robb
#preflight 61dc0bbcaf44b43628348c9b

[CL 18558135 by Robert Manuszewski in ue5-main branch]
2022-01-10 06:22:03 -05:00
jamie dale
d5c1b0098d Avoid creating redundant sparse class data instances in cooked games
The process of cooking would ensure that every BP derived from a C++ base using sparse class data would have its own sparse class data instance, as the serialization function would create an instance on save/load. This could potentially result in a lot of redundant instances that don't override any data from their archetype.

These changes allow the API for accessing sparse class data to optionally fallback to using the archetype data when possible (controlled via the EGetSparseClassDataMethod enum), though any existing code already using GetOrCreateSparseClassData (or the UHT wrapper) will continue to always create a new instance.

BPGC serialization has been updated to only save the sparse class data when it has overridden data from its archetype, and the loading code will now avoid creating the instance when no override data has been saved. This allows new code to take advantage of EGetSparseClassDataMethod by choosing to reference the archetype data instead, and the engine has also been updated to avoid calling GetOrCreateSparseClassData where possible.

Anything that requires a mutable sparse class data instance should still use GetOrCreateSparseClassData (or the UHT wrapper that doesn't take EGetSparseClassDataMethod), as otherwise you may edit data belonging to your archetype (which is why GetSparseClassData returns const data).

#preflight 61b28ecdc01c89f906c4d72f
#rb Fred.Kimberley, Thomas.Sarkanen

#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 18442650 via CL 18443219 via CL 18443223 via CL 18443224 via CL 18444418 via CL 18445355
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v897-18405271)

[CL 18445518 by jamie dale in ue5-release-engine-test branch]
2021-12-13 13:44:37 -05:00
matt breindel
597fddd644 Improved assertion output for FHeaderParser to provide the name of the struct/class being compiled and a possible user error that might have caused the problem (missing a prefix)
[at]*tim.tillotson
#rb tim.smith
#preflight 61b277aedd082817e81d0866

#ROBOMERGE-AUTHOR: matt.breindel
#ROBOMERGE-SOURCE: CL 18426836 via CL 18428164 via CL 18428184 via CL 18428205 via CL 18435149 via CL 18437401
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v897-18405271)

[CL 18437876 by matt breindel in ue5-release-engine-test branch]
2021-12-10 21:22:25 -05:00
tim smith
abf0319d69 If a ShowCategories overrides a parent's HideCategories, the correct list of categories will now be included in the meta data.
#rb trivial
#jira none
#preflight 61a7d0ec800738dbfbab589c

#ROBOMERGE-AUTHOR: tim.smith
#ROBOMERGE-SOURCE: CL 18343712 in //UE5/Release-5.0/... via CL 18343742
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18343777 by tim smith in ue5-release-engine-test branch]
2021-12-01 15:27:22 -05:00
daniel lamb
59b0d62040 Added temporary code to log all files when UHT fails.
Tim.Smith
[FYI] Tim.Smith
#preflight skip

#ROBOMERGE-AUTHOR: daniel.lamb
#ROBOMERGE-SOURCE: CL 18325461 via CL 18326818 via CL 18326973 via CL 18327001 via CL 18328442 via CL 18328531
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18328632 by daniel lamb in ue5-release-engine-test branch]
2021-11-30 14:19:48 -05:00
halfdan ingvarsson
f43a93906e UHT: Remove suppression of a warning that was required for BP nativization (C4883: function size suppresses optimizations)
#rb tim.smith
#jira none
#rnx

#ROBOMERGE-AUTHOR: halfdan.ingvarsson
#ROBOMERGE-SOURCE: CL 18297391 in //UE5/Release-5.0/... via CL 18297394
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18297400 by halfdan ingvarsson in ue5-release-engine-test branch]
2021-11-25 18:14:45 -05:00
Marc Audy
0c3be2b6ad Merge Release-Engine-Staging to Test @ CL# 18240298
[CL 18241953 by Marc Audy in ue5-release-engine-test branch]
2021-11-18 14:37:34 -05:00
aurel cordonnier
fc542f6cfd Merge from Release-Engine-Staging @ 18081189 to Release-Engine-Test
This represents UE4/Main @18073326, Release-5.0 @18081140 and Dev-PerfTest @18045971

[CL 18081471 by aurel cordonnier in ue5-release-engine-test branch]
2021-11-07 23:43:01 -05:00
aurel cordonnier
a6e741e007 Merge from Release-Engine-Staging @ 17915896 to Release-Engine-Test
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17918595 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-25 20:05:28 -04:00
tim smith
74513adf4c Properties that use a TSet with a struct will generate a compile time error if the struct doesn't have a hash value function.
#rb trivial
#jira UE-126918
#preflight 6166b963a8ff590001fc02f4

#ROBOMERGE-AUTHOR: tim.smith
#ROBOMERGE-SOURCE: CL 17798536 in //UE5/Release-5.0/... via CL 17798538
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v881-17767770)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 17798540 by tim smith in ue5-release-engine-test branch]
2021-10-13 07:41:49 -04:00
aurel cordonnier
a12d56ff31 Merge from Release-Engine-Staging @ 17791557 to Release-Engine-Test
This represents UE4/Main @17774255, Release-5.0 @17791557 and Dev-PerfTest @17789485

[CL 17794212 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-12 21:21:22 -04:00
justin hare
4d7e190747 Making it clear (by way of UHT error) that a subclass of a not-placeable class isn't allowed to be declared with the 'placeable' specifier.
#jira UE-120868, UE-98181
#rb tim.smith
#preflight 61644bfa729ae30001a53e94

#ROBOMERGE-OWNER: justin.hare
#ROBOMERGE-AUTHOR: justin.hare
#ROBOMERGE-SOURCE: CL 17773058 in //UE5/Release-5.0/... via CL 17773067
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v881-17767770)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 17774503 by justin hare in ue5-release-engine-test branch]
2021-10-11 13:58:55 -04:00
jorgenpt
fc17fcfeba PR #8438: UHT: Fix // & /* not parsing in a quoted string (Contributed by jorgenpt)
#preflight 61573c8ea680bb0001cfe55d

#ROBOMERGE-AUTHOR: tim.smith
#ROBOMERGE-SOURCE: CL 17694384 in //UE5/Release-5.0/... via CL 17694399
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v875-17642767)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 17694405 by jorgenpt in ue5-release-engine-test branch]
2021-10-01 13:53:53 -04:00
tim smith
5e96b745c7 Temporary fix to a long standing UHT issue made worse by the concurrency changes. If an intermediate file in an include chain doesn't contain any U definitions, it will be omited by UBT causing UHT to have gaps in the include file graph. This results in some delegates not being able to be found.
#jira UE-127685
#rb none
#rnx
#preflight 615727027b2a620001714c51

#ROBOMERGE-AUTHOR: tim.smith
#ROBOMERGE-SOURCE: CL 17693354 in //UE5/Release-5.0/... via CL 17693374
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v875-17642767)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 17693384 by tim smith in ue5-release-engine-test branch]
2021-10-01 12:38:40 -04:00
andrew davidson
57beb335f2 Merging //UE5/Dev-LargeWorldCoordinates [at] 17581892 to //UE5/Main
#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 17595295 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v871-17566257)

[CL 17595306 by andrew davidson in ue5-release-engine-test branch]
2021-09-22 10:01:48 -04:00
tim smith
9f489dfedd Fixed crash issue to provide better feedback as to the issue.
#rb trivial
#rnx

#ROBOMERGE-AUTHOR: tim.smith
#ROBOMERGE-SOURCE: CL 17570108 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v871-17566257)

[CL 17570120 by tim smith in ue5-release-engine-test branch]
2021-09-20 09:27:13 -04:00
tim smith
25fd5cab31 UnrealHeaderTool crashes with Assertion when structure is missing the proper prefix.
#jira UE-126909
#rb trivial
#rnx
#preflight 6147445211925a00013e00f3

#ROBOMERGE-AUTHOR: tim.smith
#ROBOMERGE-SOURCE: CL 17565863 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v870-17433530)

[CL 17565874 by tim smith in ue5-release-engine-test branch]
2021-09-19 11:03:02 -04:00
tim smith
c45c30cf84 Fix issue with UHT so it generates errors with duplicate file names again.
#rbx
#rb trivial
#preflight 614084bcbf8a6900011877af

#ROBOMERGE-AUTHOR: tim.smith
#ROBOMERGE-SOURCE: CL 17503291 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v870-17433530)

[CL 17503332 by tim smith in ue5-release-engine-test branch]
2021-09-14 08:06:51 -04:00
tim smith
a28da68976 Fixing compile issue with generated headers that are sparse
#rb trivial
#rnx

#ROBOMERGE-AUTHOR: tim.smith
#ROBOMERGE-SOURCE: CL 17491149 via CL 17491166 via CL 17491168 via CL 17491170
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v870-17433530)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 17491173 by tim smith in ue5-release-engine-test branch]
2021-09-13 08:59:23 -04:00
tim smith
e8e8ddc6d7 Fixing some UHT code generation issues to reduce obj size.
1) Functions added for LiveCoding have been removed and the data is now just a static.
2) Consolidated defered registration into a single routine.  This includes CppStructOps registration where every routine was over 100 bytes in length.
3) Removed the extra argument in function registration to avoid 7 bytes on windows
4) Fixed a typo in a macro name.

#b none
#rnx

#ROBOMERGE-AUTHOR: tim.smith
#ROBOMERGE-SOURCE: CL 17490728 via CL 17490835 via CL 17490836 via CL 17490837
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v870-17433530)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 17490838 by tim smith in ue5-release-engine-test branch]
2021-09-13 07:47:59 -04:00
aurel cordonnier
7f517562d5 Merge from Release-Engine-Staging @ 17438845 to Release-Engine-Test
This represents UE4/Main @17430120 and Dev-PerfTest @17437669

[CL 17439044 by aurel cordonnier in ue5-release-engine-test branch]
2021-09-06 12:23:53 -04:00
zousar shaker
0f5eb6cd81 Enforce use of TObjectPtr instead of raw pointers for member properties on all engine modules (but not all engine plugins) regardless of project and all modules used from ShooterGame.
#rb matt.peters

#ROBOMERGE-SOURCE: CL 17313796 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v861-17282326)

[CL 17315199 by zousar shaker in ue5-release-engine-test branch]
2021-08-26 07:05:33 -04:00
tim smith
e198aa3754 Added missing check for internal include directory.
#rb trivial
#rnx

#ROBOMERGE-SOURCE: CL 17301841 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v861-17282326)

[CL 17301846 by tim smith in ue5-release-engine-test branch]
2021-08-25 09:48:32 -04:00
andrew davidson
ffa1d5ca26 LWC support for FQuat and FTransform
Merge Dev-LargeWorldCoordinates [at] 17289670

#preflight 6125fb6925057900014f2cd6

#ROBOMERGE-SOURCE: CL 17300515 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v861-17282326)

[CL 17300523 by andrew davidson in ue5-release-engine-test branch]
2021-08-25 06:26:44 -04:00
daren cheng
52d2948d2e Add support for prioritization of categories.
Change commontext display order

#jira UE-122344
#rb Tim.Smith
#preflight 612400dfcc11eb00018dce1c

#ROBOMERGE-SOURCE: CL 17288271 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v861-17282326)

[CL 17288281 by daren cheng in ue5-release-engine-test branch]
2021-08-24 12:05:36 -04:00