Commit Graph

5735 Commits

Author SHA1 Message Date
devin doucette
b109dd23ad Added FPropertyTypeName to represent the full type name of a property
#jira UE-197352
#rb Francis.Hurteau
#rnx

[CL 30592565 by devin doucette in ue5-main branch]
2024-01-12 09:56:20 -05:00
mattias hornlund
b5664f8754 Reverted change.
Changed ArchiveCrc32 operator<<(FArchive&)  template generalization for structs to only apply for direct serialization to ArchiveCrc32 and if there is no better conversion available.

Details in Jira:

#rb Steve.Robb, Peter.Engstrom

[CL 30591200 by mattias hornlund in ue5-main branch]
2024-01-12 08:35:20 -05:00
matt peters
6b5cd11642 Cooker: SkipOnlyEditorOnly fixes:
Mark PaperSprite's load of its SourceTexture as an EditorOnly load.
Fix AsyncLoading1's implementation of the call to OnLoadedAsset to have the PackageReferencerScope that is expected around the call (this contract was established by the implementation of OnLoadedAsset that is done in the legacy LinkerLoad loading path).
#rnx
#rb danny.couture

[CL 30591045 by matt peters in ue5-main branch]
2024-01-12 08:19:50 -05:00
mattias hornlund
44e6c8e7fa Changed ArchiveCrc32 operator<<(FArchive&) template generalization for structs to only apply for direct serialization to ArchiveCrc32 and if there is no better conversion available.
Details in Jira:

#rb Steve.Robb, Peter.Engstrom

[CL 30590970 by mattias hornlund in ue5-main branch]
2024-01-12 08:14:23 -05:00
danny couture
dccbb6c893 [ZenLoader]
- Implement package tracking for OnlyEditorOnly to work during cooking
  - Remove the package tracking scope in UObjectGlobals for async loading since it was redundant and caused wrong package to be logged as instigator

#rb Matt.Peters

[CL 30590435 by danny couture in ue5-main branch]
2024-01-12 07:17:38 -05:00
marc audy
56a32fea9d Silence false V621, V654, and V1078 warnings mostly caused by TStaticArray, placement new, or population of the array inside a lambda
[CL 30587485 by marc audy in ue5-main branch]
2024-01-12 00:52:57 -05:00
jordan hoffmann
034bffffa0 [Feature] Archetype Support for subobjects
[Feature] PropertyBagRepository::FindArchetype is now the primary API for obtaining archetypes
[SubFeature] added OnPathChangedCallback to UE::FPropertyPathName so that archetypes can record which properties were deserialized
#rb Francis.Hurteau
#jira UE-202457

[CL 30573263 by jordan hoffmann in ue5-main branch]
2024-01-11 13:57:26 -05:00
francis hurteau
e71d1a39da Add a feature dubbed "data impersonator" that allows to serialize the TPS stream of one object as if it were the TPS stream of another.
This will be used for verse instance which will use a "data object" to serialize themselves.
The feature can also be used to tests backward compatibility and upgrading alongside property bags.

#rb Devin.Doucette, jordan.hoffmann
#jira UE-197357

[CL 30543449 by francis hurteau in ue5-main branch]
2024-01-10 13:59:57 -05:00
andrew scheidecker
63fb411bbc Fix a bounds check in FScriptSetHelper/FScriptMapHelper::FindInternalIndex.
#rb Steve.Robb

[CL 30536343 by andrew scheidecker in ue5-main branch]
2024-01-10 10:32:12 -05:00
zhikang shao
c0f6cd4fc8 #jira UE-203236
Improve message on !IsUnreachable() assertion failure in UObject::ProcessEvent().
#rb ben.zeigler

[CL 30535143 by zhikang shao in ue5-main branch]
2024-01-10 09:41:57 -05:00
danny couture
f9203def00 [ZenLoader]
- Get rid of old packages before trying to find one from memory to get an opportunity to update the import table instead of always trying to reload.
  - Always go throught the export table for deferred postloads to prevent potential missing postload when objects in the export table are reloaded.

#rb ben.zeigler, Francis.Hurteau
#jira UE-202115, UE-202110

[CL 30531953 by danny couture in ue5-main branch]
2024-01-10 07:37:01 -05:00
robert manuszewski
01cbb3ae89 Removing a check that may run after GC contexts have already been deallocated.
#rb Robert.Manuszewski

[CL 30526110 by robert manuszewski in ue5-main branch]
2024-01-10 02:51:53 -05:00
dan oconnor
0d46d8697d Use unversioned property serialization when duplicating objects - this speeds up blueprint compilation by about 10% and will also improve other prolific duplicators
#jira UE-173782
#rb Johan.Torp#preflight 659d91e37d64340715890b3c

[CL 30516422 by dan oconnor in ue5-main branch]
2024-01-09 16:38:55 -05:00
evgenii babinets
b9a0de20ec Tweak the stack walk in TryFindTypeSlow to dump address/module if we don't find symbols (and ignore the stack trace method itself).
#rb robert.millar

[CL 30512433 by evgenii babinets in ue5-main branch]
2024-01-09 14:08:00 -05:00
devin doucette
1ea05ddace Added bTrackSerializedPropertyPath to FUObjectSerializeContext to disable property path tracking and its overhead by default
#rb Francis.Hurteau
#rnx

[CL 30508276 by devin doucette in ue5-main branch]
2024-01-09 12:20:18 -05:00
andrew scheidecker
7d9834a6d6 Fix some Linux/non-unity compile errors in VerseVM.
[CL 30504878 by andrew scheidecker in ue5-main branch]
2024-01-09 10:35:40 -05:00
neil henning
52d4f4c4a5 Rename OpenCommit -> OnCommit and OpenAbort -> OnAbort to make it more obvious to users when the code executes.
#rb Brandon.Schaefer

[CL 30500167 by neil henning in ue5-main branch]
2024-01-09 05:11:46 -05:00
dave jones2
295ae4a606 Modified the PostLoad ensure to display the full name of the object.
The original ensure wasn't entirely useful without additional context.

#rb Francis.Hurteau

[CL 30491875 by dave jones2 in ue5-main branch]
2024-01-08 17:31:05 -05:00
robert manuszewski
f3d7a7556b Fixing property reporting when dumping GC references
#rb Johan.Torp

[CL 30438118 by robert manuszewski in ue5-main branch]
2023-12-22 03:12:13 -05:00
chris constantinescu
8884cd87fa FoundationTests: Fix compilation error on non-windows platforms from StructuredArchiveTest.cpp
#rb Steve.Robb
#jira UE-203278

[CL 30436850 by chris constantinescu in ue5-main branch]
2023-12-21 21:12:11 -05:00
markus breyer
a25c122f3e VerseVM UObject support V1.0
- new class UVerseVMClass to represent a Verse generated class (will later merge with UVerseClass)
- VClass now has an optional associated UClass that allows creation of UObjects from the class
- VPackage now has an optional associated UPackage that holds UClasses associated with that package
- NewObject, LoadField and UnifyField instructions now support UObjects
- new CVarUObjectProbablity that enables randomized substitution of UObjects for VObjects (for stress testing)
- improvements to Unreal.natvis

#rb saam.barati, tim.smith
#rnx

[CL 30436122 by markus breyer in ue5-main branch]
2023-12-21 19:41:47 -05:00
jordan hoffmann
fe94b8554a [Bugfix] Fixed bugs related to loose properties in array elements
#rb Francis.Hurteau

[CL 30433739 by jordan hoffmann in ue5-main branch]
2023-12-21 16:54:01 -05:00
jared cotton
053d9c1d55 JIRA SOL-4828 - Touching up VClass so it can be added to Melt/Freeze patch
- Restructured VClass so now it derives from VType and is subtyped into class/struct:
    - VClassBase : VType
        - VClass : VClassBase
        - VStruct : VClassBase
    - VClassBase no longer stores its emergent type in a global map... (GC bug brought up my Markus.Breyer)

- VObject now includes equality/hash logic for struct
    - TODO: Fix hash func for placeholders in containers
    - TODO: Tests for structs (These are in the melt/freeze CL... coming in shortly but this came up as a pre-requisite).

#rb saam.barati
#rb saam.barati

[CL 30433192 by jared cotton in ue5-main branch]
2023-12-21 16:20:42 -05:00
robert manuszewski
f7d7b1f7e7 Don't try to reconstruct a template when constructing non-nullable's object property default value.
Doing so may result in crashes when trying to re-construct an object on top of itself while it hasn't been fully loaded yet

#rb Steve.Robb

[CL 30429630 by robert manuszewski in ue5-main branch]
2023-12-21 11:55:39 -05:00
charles lefebvre
77a46cf826 Missing file from CL 30412410 (GetRestrictedEnumValues)
#rnx

[CL 30429597 by charles lefebvre in ue5-main branch]
2023-12-21 11:54:51 -05:00