Commit Graph

178 Commits

Author SHA1 Message Date
robert manuszewski
d1443992e1 Deprecating ANY_PACKAGE.
This change consists of multiple changes:

Core:
- Deprecation of ANY_PACKAGE macro. Added ANY_PACKAGE_DEPRECATED macro which can still be used for backwards compatibility purposes (only used in CoreUObject)
- Deprecation of StaticFindObjectFast* functions that take bAnyPackage parameter
- Added UStruct::GetStructPathName function that returns FTopLevelAssetPath representing the path name (package + object FName, super quick compared to UObject::GetPathName) + wrapper UClass::GetClassPathName to make it look better when used with UClasses
- Added (Static)FindFirstObject* functions that find a first object given its Name (no Outer). These functions are used in places I consider valid to do global UObject (UClass) lookups like parsing command line parameters / checking for unique object names
- Added static UClass::TryFindType function which serves a similar purpose as FindFirstObject however it's going to throw a warning (with a callstack / maybe ensure in the future?) if short class name is provided. This function is used  in places that used to use short class names but now should have been converted to use path names to catch any potential regressions and or edge cases I missed.
- Added static UClass::TryConvertShortNameToPathName utility function
- Added static UClass::TryFixShortClassNameExportPath utility function
- Object text export paths will now also include class path (Texture2D'/Game/Textures/Grass.Grass' -> /Script/Engine.Texture2D'/Game/Textures/Grass.Grass')
- All places that manually generated object export paths for objects will now use FObjectPropertyBase::GetExportPath
- Added a new startup test that checks for short type names in UClass/FProperty MetaData values

AssetRegistry:
- Deprecated any member variables (FAssetData / FARFilter) or functions that use FNames to represent class names and replaced them with FTopLevelAssetPath
- Added new member variables and new function overloads that use FTopLevelAssetPath to represent class names
- This also applies to a few other modules' APIs to match AssetRegistry changes

Everything else:
- Updated code that used ANY_PACKAGE (depending on the use case) to use FindObject(nullptr, PathToObject), UClass::TryFindType (used when path name is expected, warns if it's a short name) or FindFirstObject (usually for finding types based on user input but there's been a few legitimate use cases not related to user input)
- Updated code that used AssetRegistry API to use FTopLevelAssetPaths and USomeClass::StaticClass()->GetClassPathName() instead of GetFName()
- Updated meta data and hardcoded FindObject(ANY_PACKAGE, "EEnumNameOrClassName") calls to use path names

#jira UE-99463
#rb many.people
[FYI] Marcus.Wassmer
#preflight 629248ec2256738f75de9b32

#codereviewnumbers 20320742, 20320791, 20320799, 20320756, 20320809, 20320830, 20320840, 20320846, 20320851, 20320863, 20320780, 20320765, 20320876, 20320786

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20430220 via CL 20433854 via CL 20435474 via CL 20435484
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20448496 by robert manuszewski in ue5-main branch]
2022-06-01 03:46:59 -04:00
jack cai
e8f38eb3ea ControlRig: Reverted a previous change that parented rigvm memory objects to the ControlRigBP asset object because the engine no longer supports uobject as uclass outer, only upackage can be the outer of an uclass.
Also added UControlRigBlueprint::GetPreloadDependencies to ensure memory classes are loaded before ControlRigBP during cooking.

#jira UE-152546
#rb helge.mathee sara.schvartzman halfdan.ingvarsson
#fyi benoit.gadreau
#preflight https://horde.devtools.epicgames.com/job/62945fd71154108e88cc4c35

[CL 20442350 by jack cai in ue5-main branch]
2022-05-31 16:55:43 -04:00
Helge Mathee
6520c809a9 Control Rig: backend work for support for multi graph
#rb benoit.gadreau
#jira UE-153497
#preflight https://horde.devtools.epicgames.com/job/6294be4e2e34c2e487b13394

[CL 20434781 by Helge Mathee in ue5-main branch]
2022-05-31 04:27:20 -04:00
sara schvartzman
0937ada054 Control Rig: Fix select nodes not supporting arrays of arrays
#jira na
#rb trivial
#preflight https://horde.devtools.epicgames.com/job/6287aa2e5b568e5761f505cc

[CL 20294487 by sara schvartzman in ue5-main branch]
2022-05-20 11:00:38 -04:00
sara schvartzman
38c72b07e2 Control Rig: Fix load of pre-template assets
#jira UE-153247
#rb helge.mathee
#preflight https://horde.devtools.epicgames.com/job/6287664b1e478b95c7fbc926

[CL 20293516 by sara schvartzman in ue5-main branch]
2022-05-20 09:28:06 -04:00
sara schvartzman
cc32bcfbe4 Control Rig: Fix crash when upgrading sequence node
#jira UE-151719
#rb helge.mathee
#preflight https://horde.devtools.epicgames.com/job/628673b415019f6477482bd5

[CL 20292184 by sara schvartzman in ue5-main branch]
2022-05-20 04:43:05 -04:00
Helge Mathee
0c6e7369ea Control Rig: Blueprint handlepackage load to engage in -game even if the package isn't known yet
#rb sara.schvartzman
#jira UE-152812
#preflight https://horde.devtools.epicgames.com/job/6286249c9701e2d2b2f33742

[CL 20278485 by Helge Mathee in ue5-main branch]
2022-05-19 08:04:52 -04:00
Helge Mathee
07ed471091 Control Rig: Disable errors during backwards compat code for variables
#rb sara.schvartzman
#jira UE-149281
#preflight https://horde.devtools.epicgames.com/job/62861d3b614041edb7e9267c

[CL 20278050 by Helge Mathee in ue5-main branch]
2022-05-19 06:49:41 -04:00
sara schvartzman
bf80edbc4f Control Rig: Fix some pins not resolving on load
#jira UE-152862
#rb trivial
#preflight https://horde.devtools.epicgames.com/job/62855c54ce2518860fec8fbf

[CL 20268237 by sara schvartzman in ue5-main branch]
2022-05-18 16:54:34 -04:00
jack cai
f208525adb ControlRig: Reparent rig vm mem class to the asset obj instead of the package because asset related operation assumes that each package only contains one asset object and actions like rename only acts on that one object and skips other objects in the same package
#jira UE-152546
#rb helge.mathee, sara.schvartzman, halfdan.ingvarsson
#preflight https://horde.devtools.epicgames.com/job/628492ce5a354a55523d2153

[CL 20266543 by jack cai in ue5-main branch]
2022-05-18 15:28:05 -04:00
sara schvartzman
6c0d38da89 Control Rig: Performance improvements on template nodes
#jira na
#rb helge.mathee
#preflight https://horde.devtools.epicgames.com/job/6283a58a730e8423d1256bf5

[CL 20258899 by sara schvartzman in ue5-main branch]
2022-05-18 06:43:26 -04:00
Helge Mathee
79506075b5 RigVMDeveloper: Centralize pythonize for enum values
#rb sara.schvartzman
#jira UE-151724
#preflight https://horde.devtools.epicgames.com/job/627e298434434190054ad8c8

[CL 20178877 by Helge Mathee in ue5-main branch]
2022-05-13 05:53:36 -04:00
Helge Mathee
7c6bf8d066 ControlRig: Only remove rig_unit variables for very-old assets
#rb sara.schvartzman
#jira UE-149281
#preflight https://horde.devtools.epicgames.com/job/627cd338ce4192efbe25865a

[CL 20162527 by Helge Mathee in ue5-main branch]
2022-05-12 05:52:59 -04:00
Helge Mathee
af4d3cb9e3 Control Rig: Proxy control support
#preflight https://horde.devtools.epicgames.com/job/627b92c10a5817c9d93f5da6
#jira na
#rb sara.schvartzman benoit.gadreau

[CL 20136941 by Helge Mathee in ue5-main branch]
2022-05-11 08:12:21 -04:00
sara schvartzman
71eb93c798 Control Rig: Fix crash when changing variable type to rotator
#jira UE-151605
#rb helge.mathee
#preflight https://horde.devtools.epicgames.com/job/627ba08ba85e625d6f6169b3

[CL 20136557 by sara schvartzman in ue5-main branch]
2022-05-11 07:51:44 -04:00
sara schvartzman
c77c447f49 Control Rig: Fix function not editable after renaming
#jira UE-151489
#rb helge.mathee
#preflight https://horde.devtools.epicgames.com/job/627b9cca1e749933437e0031

[CL 20136303 by sara schvartzman in ue5-main branch]
2022-05-11 07:30:10 -04:00
sara schvartzman
dbf7254f5a Control Rig: Back to initializing all template filtered permutations from types
#jira UE-151518
#rb halfdan.ingvarsson
#preflight https://horde.devtools.epicgames.com/job/627a8b34d847d5f149e73145

[CL 20124326 by sara schvartzman in ue5-main branch]
2022-05-10 12:00:48 -04:00
sara schvartzman
7b95068ced Control Rig: Fix recompute filtered permutations from links
#jira UE-151485
#rb helge.mathee
#preflight https://horde.devtools.epicgames.com/job/627a6684fc07e0a9b4feb804

[CL 20122135 by sara schvartzman in ue5-main branch]
2022-05-10 09:29:27 -04:00
sara schvartzman
3c79ac0833 Control Rig: Fix crash when opening certain rigs
#jira UE-151396
#rb helge.mathee
#preflight https://horde.devtools.epicgames.com/job/62794bba822bdc69f023d4ff

[CL 20106925 by sara schvartzman in ue5-main branch]
2022-05-09 14:13:48 -04:00
Lauren Barnes
6248f8d412 Replacing legacy EditorStyle calls with AppStyle
#preflight 6272a74d2f6d177be3c6fdda
#rb Matt.Kuhlenschmidt

#ROBOMERGE-OWNER: Lauren.Barnes
#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20057269 via CL 20070159 via CL 20072035 via CL 20072203
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)
#ROBOMERGE-CONFLICT from-shelf

[CL 20105363 by Lauren Barnes in ue5-main branch]
2022-05-09 13:12:28 -04:00
sara schvartzman
ed571628f5 Control Rig: Filtered permutations for template nodes
#jira na
#rb helge.mathee
#preflight https://horde.devtools.epicgames.com/job/62769cbe75268b4ace10dc69

[CL 20101111 by sara schvartzman in ue5-main branch]
2022-05-09 07:34:28 -04:00
Helge Mathee
043e850f31 Control Rig: Enabling aggregate nodes + implementing sequence as aggregate
#rb sara.schvartzman
#jira na
#preflight https://horde.devtools.epicgames.com/job/6273e2f65c29fb7661e9bd23

[CL 20058905 by Helge Mathee in ue5-main branch]
2022-05-05 11:55:01 -04:00
Matt Peters
d64cf41728 AssetRegistry includes (Engine Plugins): change #include "AssetData.h" -> #include "AssetRegistry/AssetData.h", and similar for the other moved AssetRegistry headers.
#rb Zousar.Shaker
#rnx
#preflight 6270563191629533ec2b6f6e

[CL 20017756 by Matt Peters in ue5-main branch]
2022-05-02 18:59:38 -04:00
jeremie passerin
5145e3326c Control Rig - Python Script - Set Pin Expansion, Set Function Properties, Fixed AddExposedPin Output
#jira UE-149916
#jira UE-141715
#jira UE-149915
#rb helge.mathee
#rb sara.schvartzman
#preflight https://horde.devtools.epicgames.com/job/626c60819e6bef1792171fde

[CL 20010332 by jeremie passerin in ue5-main branch]
2022-05-02 12:25:41 -04:00
sara schvartzman
72c5a65ac0 Control Rig: Fix undo/redo deleting function with local variables crashes
#jira UE-149614
#rb halfdan.ingvarsson
#fyi helge.mathee
#preflight https://horde.devtools.epicgames.com/job/62693159a211933a6bef654e

[CL 19941542 by sara schvartzman in ue5-main branch]
2022-04-27 12:19:16 -04:00