Commit Graph

863 Commits

Author SHA1 Message Date
julien stjean
10402eed8a Fixed a crash when canceling an asset migration. When moving back the packages to their original path there could be some packages left from the migration.
#jira UE-215128
#rb Alexis.Matte

[CL 33860163 by julien stjean in ue5-main branch]
2024-05-23 09:35:57 -04:00
alexis matte
52a47b3637 AssetTools: Add a IAssetTools::SanitizeName function. Interchange call the new sanitize code API when sanitizing a name, not when sanitizing a path.
#jira UE-215108
#rnx
#rb Dave.Belanger, JeanLuc.Corenthin

[CL 33791465 by alexis matte in ue5-main branch]
2024-05-21 08:37:48 -04:00
logan buchy
f1fc87f369 Unregister AssetDefinitions from registry
* Sync function was not taking into account unregistered AssetDefinitions - the fix is to iterate the AssetTypeActions also and find corresponding AssetDefinitions and remove if there is none.
* SAssetFilterBar caches AssetDefinitions - added a notification for when the AssetDefinitionRegistry changes.  Put the broadcast on a one-shot ticker instead of directly calling as the Register/Unregister can occur frequently.  Breaks up the callback depth.
* Added a "Version" to AssetDefinitionRegistry as clients were using the number of assets as a version. This can fall over if there is an Add and Remove between two calls to GetAllAssetDefinitions.

#jira UE-213686
#rb aditya.ravichandran, jered.mcferron

[CL 33704087 by logan buchy in ue5-main branch]
2024-05-16 18:41:47 -04:00
dominic couture
3518e1ace4 Iterate over migrated packags and do WorldCleanup() on found world. This is necessary to avoid various issues iwht Unitialization() in the BeginDestroys() of world subsystems.
#jira UE-214541
#rb JeanFrancois.Dube, Julien.StJean

[CL 33639981 by dominic couture in ue5-main branch]
2024-05-14 19:28:16 -04:00
ben hoffman
2e6d7878bf Do not allow users to create a child blueprint based off of a BP function library. This never worked, and you would only recieve comipliation errors if you made one.
#jira UE-88170
#rb dan.oconnor

[CL 33582349 by ben hoffman in ue5-main branch]
2024-05-10 14:32:25 -04:00
andrew phillips
376f5c1ac6 Added Genoration of patching rule for source project that have a _[0-9]+ style suffix for header patching
AssetTools.cpp is the substance for this fix.
ValkyrieProjectManager and DuplicatePluginCommandlet are for testing on Horde.


#rb Francis.Hurteau

[CL 33573769 by andrew phillips in ue5-main branch]
2024-05-10 09:53:58 -04:00
julien stjean
ba4abe419f When importing an asset never force a content browser sync if the caller didn't want a sync.
This fix an issue where the import of an asset pack would cause one of the CB to loose its setting because the tab was open to early in the engine boot cycle.

#jira UE-212259
#rb Alexis.Matte

[CL 33546452 by julien stjean in ue5-main branch]
2024-05-09 11:04:17 -04:00
patrick boutot
a2b5613488 Slate: Deprecate SListView::ItemHeight and STreeViewItemHeight. ItemHeight and ItemWidth are only used when the panel is is as a tile or both value are assigned. With TreeView and ListView, you can't assigned both. The function are protected, a subclass of those could but it's up to them to expose the ItemHeight and ItemWidth. This behavior changed was introduced with CL 7634094.
#jira UE-210415
#rb editor-ui-systems

[CL 33370360 by patrick boutot in ue5-main branch]
2024-05-01 08:05:39 -04:00
liz barrett
4f96eed56b Updated ExportAssets to include option for using CleanFileName as the file name
This changelist adds a new function to asset tools in order to export assets using their clean file name. Without this change, the assets are exported to their desired destination -- but the asset is copied over nested in it's entire existing path

I also added this as an entirely new method in order to avoid changing all of the other call sites where `ExportAssets` was being used.

#tests
-Ran editor locally, confirmed using this new method exported assets using the new function

#rnx
[REVIEW] [at]jay.nakai, [at]michael.ekberg, [at]jay.thrash, [at]fernando.pereira, [at]jonathan.younger
#rb geoffrey.wong, michael.ekberg

[CL 33357074 by liz barrett in ue5-main branch]
2024-04-30 18:24:20 -04:00
dave belanger
bd96129f79 Remove restrictions that a plugin name cannot start with a digit and that is has to pass IAssetTools::IsNameAllowed
These checks were introduced at a time where we thought the plugin name could be referenced in Verse code and consequently had to be a valid Verse identifier, but that's not true: only the plugin Verse path can
#rb Rex.Hill

[CL 33311260 by dave belanger in ue5-main branch]
2024-04-29 15:40:57 -04:00
robb surridge
4db3abad42 Reword confirmation dialog for existing assets.
#jira UE-198862
#rb brooke.hubert

[CL 33238041 by robb surridge in ue5-main branch]
2024-04-25 13:54:24 -04:00
alexis matte
03ab547399 Interchange: If we discover we override an existing asset before starting the import, enqueue a real re-import.
#rb JeanLuc.Corenthin
#rnx

[CL 33180214 by alexis matte in ue5-main branch]
2024-04-23 17:13:02 -04:00
danny couture
a01131037f [ALT]
- Deprecate GIsEditorLoadingPackage global and use accessors instead so we can ensure thread-safety
 - Make GIsEditorLoadingPackage compatible with ALT
 - Prevent GIsEditorLoadingPackage from being misused

#jira UE-203917
#rb kevin.macaulayvacher

[CL 33165370 by danny couture in ue5-main branch]
2024-04-23 07:41:00 -04:00
robert millar
c07ec3f560 Fix use of deprecated method
[CL 33120692 by robert millar in ue5-main branch]
2024-04-19 18:31:08 -04:00
robert millar
f699103d4a Making collection manager thread safe to allow future work to run content browser search in parallel.
Deprecate GetLastError and replace with FText* output parameters on fallible methods.
Use hierarchy of guard types to document access requirements for internal methods.
Separate cache updates from cache access. Cache updates must be performed explicitly so that read->write lock update and possible preemption is clear.

#rb logan.buchy

[CL 33120048 by robert millar in ue5-main branch]
2024-04-19 18:17:59 -04:00
bob tellez
aa72a7b58b [Backout] - CL33009366
[FYI] robert.millar
Original CL Desc
-----------------------------------------------------------------
Fix use of deprecated method

[CL 33030136 by bob tellez in ue5-main branch]
2024-04-17 02:18:35 -04:00
bob tellez
b0bbbcd9bf [Backout] - CL33005160
[FYI] robert.millar
Original CL Desc
-----------------------------------------------------------------
Making collection manager thread safe to allow future work to run content browser search in parallel.
Deprecate GetLastError and replace with FText* output parameters on fallible methods.
Use hierarchy of guard types to document access requirements for internal methods.
Separate cache updates from cache access. Cache updates must be performed explicitly so that read->write lock update and possible preemption is clear.

#rb logan.buchy

[CL 33030091 by bob tellez in ue5-main branch]
2024-04-17 02:10:31 -04:00
robert millar
bef6cb4f15 Fix use of deprecated method
[CL 33009563 by robert millar in ue5-main branch]
2024-04-16 14:47:01 -04:00
robert millar
820b6c0952 Making collection manager thread safe to allow future work to run content browser search in parallel.
Deprecate GetLastError and replace with FText* output parameters on fallible methods.
Use hierarchy of guard types to document access requirements for internal methods.
Separate cache updates from cache access. Cache updates must be performed explicitly so that read->write lock update and possible preemption is clear.

#rb logan.buchy

[CL 33005243 by robert millar in ue5-main branch]
2024-04-16 12:54:49 -04:00
robert millar
afb65887a1 Optimizing path permission list checks in ContentBrowserAssetDataSource by optimizing the checks themselves and skipping checks for child paths where possible.
Store paths in permission lists in TDirectoryTree so that checks scale with path depth rather than number of paths.
Add PassesStartsWithFilterRecursive which can return whether a Fail/Pass result for a particular path can be followed by a Pass/Fail result for a child path. (e.g. a path is allowed and there are no explicit denials for any children of that path)
Deprecate GetDenyList and GetAllowList.
Add unit tests for FPathPermissionList.

#rb Julien.StJean, Rex.Hill

[CL 32868537 by robert millar in ue5-main branch]
2024-04-10 19:34:36 -04:00
robert millar
25a0122eb2 Workaround for crash serializing CDOs: Skip text properties
#rb Jamie.Dale

[CL 32837365 by robert millar in ue5-main branch]
2024-04-09 16:05:05 -04:00
julien stjean
c4d205f74f Removed the cause of the some warning in our asset mirgration test.
One was caused by the import validation not accounting for the package remapping when validating the class of the import in the linkerload.

The other was caused by some code in the open world tech that asked the asset registry to scan for a file that doesn't exist. This one is resolved by putting the flag to tell the engine that the instanced package from migration don't have on disk file.

#jira UE-209054

#rb JeanLuc.Corenthin, Francis.Hurteau

[CL 32792908 by julien stjean in ue5-main branch]
2024-04-08 10:46:56 -04:00
andrew phillips
22e4c49766 Fix for using Headerpatching issues when running LCW automated test.
Requires
Valkyrie.CopyProjectUsingAssetHeaderPatching true
Valkyrie.UseAssetToolsHeaderPatching true

There are 2 parts to the fix.
1. The header patcher now detects if the new string has the _$number, and uses the parsing constructor which sets the FNames number consistently. else it uses the original number in that particular FName.
2. The generation of the patching maps now look for sources that have the _$number, and create entries with those stripped.


#rb Francis.Hurteau

[CL 32502290 by andrew phillips in ue5-main branch]
2024-03-26 05:27:41 -04:00
richard malo
c9222edfdb Added new class UDeletedObjectPlaceholder to properly handle when an external package contains no more object.
- Ground work for full support of moving an actor from one External Data Layer to another
- Fixes the Save Package dialog not showing the last valid actor's display name (instead was showing the package name)
- Fixes empty packages not properly cleaned up by ULevel::CleanupLevel
- Changing level's bUseExternalActors from true to false and reloading the level without saving now properly works
#rb jeanfrancois.dube

[CL 32209376 by richard malo in ue5-main branch]
2024-03-13 08:01:53 -04:00
robert millar
c26ffc47ad Fix UE_PROJECTION with constructor.
[CL 32160192 by robert millar in ue5-main branch]
2024-03-11 14:04:23 -04:00