Commit Graph

118 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
robert manuszewski
f8a812a32f Converting hardcoded short class/enum names to pathnames ahead of ANY_PACKAGE removal
#rb trivial
#jira UE-99463
#preflight 6288fd998828ea88c8aef3d0

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20314896 via CL 20314897 via CL 20314903 via CL 20314904
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20315214 by robert manuszewski in ue5-main branch]
2022-05-22 10:30:02 -04:00
tom noonan
f174a13ea8 Fixed Instances of a script in the world copied from a template will continue to use the template's version of the class
Originally prepared by markus.breyer with some additional fixes for some issues I was seeing while testing

[REVIEW] [at]markus.breyer, [at]robert.manuszewski

#ROBOMERGE-AUTHOR: tom.noonan
#ROBOMERGE-SOURCE: CL 20277717 via CL 20277723 via CL 20277728 via CL 20277731
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20278380 by tom noonan in ue5-main branch]
2022-05-19 07:41:50 -04:00
Matt Peters
7ad238a806 AssetRegistry includes (Engine/Source): change #include "AssetData.h" -> #include "AssetRegistry/AssetData.h", and similar for the other moved AssetRegistry headers.
#rb Zousar.Shaker
#rnx
#preflight 6270509a220f89f0ad573030

[CL 20016982 by Matt Peters in ue5-main branch]
2022-05-02 18:06:48 -04:00
kiaran ritchie
f21713720e Adding ability to batch replace missing skeleton asset.
#JIRA UE-149593
#rb thomas.sarkanen
#preflight

[CL 19904145 by kiaran ritchie in ue5-main branch]
2022-04-25 12:30:42 -04:00
jason stasik
3ce9c775a2 Allow separate permission lists for viewing and creating assets
#rb rex.hill
#preflight 62574684667d4516642224fa

#ROBOMERGE-AUTHOR: jason.stasik
#ROBOMERGE-SOURCE: CL 19760664 via CL 19762141 via CL 19762160 via CL 19762168
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v939-19570697)

[CL 19802156 by jason stasik in ue5-main branch]
2022-04-18 23:31:34 -04:00
scott nelson
d33b4a0d71 Update create and duplicate behavior in Content Browser for Public/Private state
- API to control default behavior of whether newly created content is made public or private on creation
- Ensure duplication copies original's Public/Private state

#rb Francis.Hurteau
#preflight 623b6f07da56b5683a0b56a4

#ROBOMERGE-OWNER: scott.nelson
#ROBOMERGE-AUTHOR: scott.nelson
#ROBOMERGE-SOURCE: CL 19485709 via CL 19487498 via CL 19498786 via CL 19498791
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v936-19480137)

[CL 19501393 by scott nelson in ue5-main branch]
2022-03-24 15:44:12 -04:00
michael noland
674afabc53 Editor: Added a fixup redirectors option that *doesn't* delete the redirectors afterwards, which can be useful for cleaning up a project while others are still actively working and might have created new references to the renamed object
#jira UE-143408
#rb lauren.barnes
#lockdown julien.marchand
#preflight 62215f872c722ee170e2ac96

#ROBOMERGE-AUTHOR: michael.noland
#ROBOMERGE-SOURCE: CL 19258824 in //UE5/Release-5.0/... via CL 19259128
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19263827 by michael noland in ue5-main branch]
2022-03-04 04:10:21 -05:00
kiaran ritchie
b75fa77bb5 Fixes issue replacing skeleton on AnimBP that is missing skeleton asset.
#JIRA https://jira.it.epicgames.com/browse/UE-141917
#preflight 6207067aab22f3d80a56c666
#rb halfdan.ingvarsson

#ROBOMERGE-AUTHOR: kiaran.ritchie
#ROBOMERGE-SOURCE: CL 18968991 in //UE5/Release-5.0/... via CL 18969265 via CL 18969586
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18969610 by kiaran ritchie in ue5-main branch]
2022-02-11 20:50:24 -05:00
Alexis Matte
5a6a855dcd Scene node will now only serialize the local transform, all SetGlobalTransform functions has been removed.
Fix scene import when there is no specified factory
The scene node specialtype attribute can now be a "Transform" type. This allow the generic scene pipeline to found group transform node.

#jira none
#rb jeanmichel.dignard, richard.talbotwatkin
#rnx
#preflight 62066e4054003c49ad37c388

[CL 18951547 by Alexis Matte in ue5-main branch]
2022-02-11 09:16:05 -05:00
patrick laflamme
2268774ab0 Exposed IAssetsTools::DiffAgainstDepot() and IAssetTools::DiffAssets() functions to Python
#rb Jamie.Dale
#preflight 61f010acbe0f0e0a6203836c

#ROBOMERGE-AUTHOR: patrick.laflamme
#ROBOMERGE-SOURCE: CL 18725285 via CL 18725289 via CL 18725294 via CL 18725693 via CL 18725965
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18726009 by patrick laflamme in ue5-main branch]
2022-01-25 13:56:08 -05:00
marc audy
6553e6cd0a Remove as much C++ deprecation as possible up to 4.17 (along with a few scattered removals from beyond)
#preflight 61eefc77ba69a4fdb220bf23

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 18712765 in //UE5/Release-5.0/... via CL 18712784 via CL 18713147
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18713191 by marc audy in ue5-main branch]
2022-01-24 15:07:48 -05:00
rex hill
36ca9082eb Allow blocking rename and duplicate UI per asset
#rb patrick.enfedaque
#preflight 61eae71cea0da8133dcf24d4

#ROBOMERGE-AUTHOR: rex.hill
#ROBOMERGE-SOURCE: CL 18691368 in //UE5/Release-5.0/... via CL 18691395 via CL 18691432
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18691442 by rex hill in ue5-main branch]
2022-01-21 12:33:34 -05:00
kiaran ritchie
4d8cfcaf85 Attempt #2 with fix to not break projects using EditorAnimUtils::RetargetAnimation()
- Replacing retarget manager with "Retarget Sources"
- Remove right-click retarget features from ABPs, anims and skeletons
- Deprecating URig asset

#rb:halfdan.ingvarsson
#JIRA:UE-137192
[FYI] benoit.gadreau
#preflight:https://horde.devtools.epicgames.com/job/61de1627f33c0754173a0887

#ROBOMERGE-AUTHOR: kiaran.ritchie
#ROBOMERGE-SOURCE: CL 18609946 in //UE5/Release-5.0/... via CL 18609978 via CL 18610008
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v899-18417669)

[CL 18610041 by kiaran ritchie in ue5-main branch]
2022-01-13 18:49:53 -05:00
kiaran ritchie
108d324377 [Backout] - CL18579636
[FYI] kiaran.ritchie
Original CL Desc
-----------------------------------------------------------------
- Replacing retarget manager with "Retarget Sources"
- Remove right-click retarget features from ABPs, anims and skeletons
- Deprecating URig asset

#rb:halfdan.ingvarsson
#JIRA:UE-137192
[FYI] benoit.gadreau
#preflight:https://horde.devtools.epicgames.com/job/61de1627f33c0754173a0887

#ROBOMERGE-AUTHOR: kiaran.ritchie
#ROBOMERGE-SOURCE: CL 18581158 in //UE5/Release-5.0/... via CL 18581164 via CL 18581169
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18581172 by kiaran ritchie in ue5-main branch]
2022-01-11 22:48:53 -05:00
kiaran ritchie
f9bd30d547 - Replacing retarget manager with "Retarget Sources"
- Remove right-click retarget features from ABPs, anims and skeletons
- Deprecating URig asset

#rb:halfdan.ingvarsson
#JIRA:UE-137192
[FYI] benoit.gadreau
#preflight:https://horde.devtools.epicgames.com/job/61de1627f33c0754173a0887

#ROBOMERGE-AUTHOR: kiaran.ritchie
#ROBOMERGE-SOURCE: CL 18579636 in //UE5/Release-5.0/... via CL 18579679 via CL 18579698
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18579719 by kiaran ritchie in ue5-main branch]
2022-01-11 20:22:40 -05:00
Julien stjean
26dd081009 Added a function ImportAssetsWithDialogAsync to the AssetTools.
Changed two import calls in the editor where interchange wasn't used. ImportAssetsWithDialog doesn't support async import to avoid breaking existing automation scripts or code.

#jira UE-136698
#rb Alexis.Matte
#preflight 61d340472e0e436c7257dbe4

#ROBOMERGE-OWNER: Julien.stjean
#ROBOMERGE-AUTHOR: julien.stjean
#ROBOMERGE-SOURCE: CL 18503230 in //UE5/Release-5.0/... via CL 18503245 via CL 18503259
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)
#ROBOMERGE-CONFLICT from-shelf

[CL 18503775 by Julien stjean in ue5-main branch]
2022-01-03 16:49:42 -05:00
julien stjean
0af64fa975 Stop interchange from being use when using asset tool api by defaul (when interchange is on). (Otherwise this would break some licensees made code and scripts). Those who want an async import should use the interchange api preferably.
Added a setting to turn on interchange import only for textures.

The selection of the asset in the content is now only done after all the asset are imported when using interchange.

#jira UETOOL-4291
#rb Alexis.Matte
#preflight 619e34820141b3c6da5b98d0

#ROBOMERGE-AUTHOR: julien.stjean
#ROBOMERGE-SOURCE: CL 18282733 in //UE5/Release-5.0/... via CL 18282735
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18282740 by julien stjean in ue5-release-engine-test branch]
2021-11-24 08:15:47 -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
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
nick darnell
0c8d9e2d51 DataAssets - DataAssets can now have their base class changed (single or in bulk) as a right click asset action. So if you refactor your data assets and make new subclasses it's a lot easier to upgrade existing content now.
#jira none

#ROBOMERGE-SOURCE: CL 17155423 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v855-17104924)

[CL 17155428 by nick darnell in ue5-release-engine-test branch]
2021-08-12 13:49:50 -04:00
aurel cordonnier
dc4bf61540 Merge from Release-Engine-Staging @ 17030559 to Release-Engine-Test
This represents UE4/Main @ 17030256 and Dev-PerfTest @ 17030553

[CL 17031509 by aurel cordonnier in ue5-release-engine-test branch]
2021-08-03 11:56:47 -04:00
Marc Audy
e80ea6b959 Merge from Release-Engine-Staging @ 16444985
This represents UE4/Main @ 16445039 and Dev-PerfTest @ 16444526

[CL 16445122 by Marc Audy in ue5-release-engine-test branch]
2021-05-25 02:43:26 -04:00
nick darnell
a0e2f5d0e3 Advanced Copy - Fixed folders not being copyable, because their default state was unchecked, this has been fixed to check the contents of the folders.
Advanced Copy - We no longer open every package and all dependencies to setup possible renames, the code has been changed to do all the logic on PackageName, needed to cut out bGenerateUniqueNames from the copy params for now.

TODO - A good future improvement would be to make it so that tracking dependencies becomes lazy in the UI, as someone expands items in the tree, it would extend the dependencies 2 levels to know if it termininates or not, and wait until it's expanded to further look for depependencies.  Would require a much larger refactor than I wanted to do here.

[at]Lauren.Barnes,[at]Francis.Hurteau


#ROBOMERGE-SOURCE: CL 16385663 via CL 16386229 via CL 16386302
#ROBOMERGE-BOT: (v804-16311228)

[CL 16387277 by nick darnell in ue5-release-engine-staging branch]
2021-05-19 11:51:18 -04:00
rex hill
1f2033f4c7 Content Browser: Add filters for file types such as Python
#jira UE-94364
#preflight 609c8cd47ebade000189c9a5
#rb jamie.dale


#ROBOMERGE-SOURCE: CL 16311792 via CL 16312810 via CL 16312826 via CL 16312840
#ROBOMERGE-BOT: (v804-16311228)

[CL 16318016 by rex hill in ue5-release-engine-staging branch]
2021-05-13 16:20:36 -04:00