Commit Graph

69 Commits

Author SHA1 Message Date
steve robb
6d5b974842 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30735396 by steve robb in ue5-main branch]
2024-01-19 19:41:56 -05:00
robert millar
ea88d149f1 Add IsInPlugin to FContentBrowserItem.
[CL 30663222 by robert millar in ue5-main branch]
2024-01-17 13:29:18 -05:00
robert millar
a6866c8583 Add plugin category flag EContentBrowserItemFlags::Category_Plugin
Assign flag to content browser folders and assets in plugins.
Fix incorrect early return in UContentBrowserAssetDataSource::OnPathsAdded

#rb Rex.Hill, Jamie.Dale

[CL 30621336 by robert millar in ue5-main branch]
2024-01-15 13:01:17 -05:00
aditya ravichandran
a90d73d766 Asset Editors: Add support for opening cooked assets in a new "Read Only" mode for asset editors, starting with the Static Mesh Editor and Texture Editor.
#jira UE-187048
#rb jason.stasik

[CL 27595048 by aditya ravichandran in ue5-main branch]
2023-09-05 10:01:26 -04:00
ben zeigler
873dfcab56 Return true earlier from content browser folder functions that search multiple data sources, this improves performance while refreshing things
#jira UE-183275
#rb julien.stjean

[CL 27351303 by ben zeigler in ue5-main branch]
2023-08-24 14:36:08 -04:00
robert millar
4301477ebd Provide telemetry to SAssetView. Telemetry is not sent to any endpoint for licensees.
#rb julien.st-jean,logan.buchy,wes.hunt

[CL 26301369 by robert millar in ue5-main branch]
2023-06-28 18:21:13 -04:00
jamie dale
b0f9efe23a Fixed nested virtual roots (from aliases) failing to resolve correctly
It's possible for aliases to generate nested virtual roots, eg)
 /All/MyStuff -> /MyStuff
 /All/MyStuff/SomePlugin -> /SomePlugin

In that situation the virtual path resolver would fail to process a path like "/All/MyStuff/RefContent" since "/All/MyStuff" had a child folder so was assumed never to be a virtual root in its own right.

This change updates the resolver to keep track of the best potential virtual root as the path is parsed (even if it has children), and will then use the best match when converting to an internal path.

#jira
#rb Rex.Hill, Dave.Belanger

[CL 25849603 by jamie dale in ue5-main branch]
2023-06-07 13:10:47 -04:00
bryan sefcik
ecd9fa8a99 Removed dependencies that aren't needed by the modules that declare them. This is to help fix bad circular dependencies in the engine.
#preflight 647b5f919c5bac5c6f8be490
#jira

[CL 25782459 by bryan sefcik in ue5-main branch]
2023-06-03 15:25:01 -04:00
julien stjean
8787c97df0 Additional improvement for the filter compilations of the asset views.
Added a system to cache some data that can be used when recompiling the filters for the incremental data updates.
For now this only used by for the asset data source internal path compilation of the asset views.

In my test on a bad scenario this yielded a reduction 98% of the time it take to call UContentBrowserAssetDataSource::CreateAssetFilter when the cache is used.

Before the optimization the reference call took  26.3 ms
After the optimization the reference call took 0.3725 ms

Also this change fix an issue with my last change interacting badly with the alias data source by not using its customization of the package paths hierarchy.

#preflight 645a92f42d27fa25b3069003
#jira UE-183276
#rb Rex.Hill

[CL 25396753 by julien stjean in ue5-main branch]
2023-05-09 18:06:59 -04:00
julien stjean
71cc3dbeb5 Perf improvement to the function UContentBrowserAssetDataSource::CreateAssetFilter.
For a large project with a lot paths with a recursive search on all the folder the change reduced time it took to create the filter by ~86%.

Before the change a function call took 191.3 ms
After the change the same function call took 25.8 ms

#jira UE-183275
#preflight 64499a7709453df548d462f5
#rb Rex.Hill, Robert.Millar

[CL 25283516 by julien stjean in ue5-main branch]
2023-05-01 10:09:15 -04:00
jamie dale
d20a9f1159 Hide "Find in Explorer" menu option for cooked content, as there is never a source file available
#rb Rex.Hill
#rnx

[CL 25225496 by jamie dale in ue5-main branch]
2023-04-27 18:49:41 -04:00
jamie dale
b95e92ef3d Content Browser UX improvements for cooked content
* Plugins that only contain cooked content (and have no C++ modules) no longer show their "Content" suffix.
* Folders that only contain private cooked content are no longer visible in the asset or path views.

#preflight 642f2e3cb306e98c632f0195
#rb Jason.Stasik, Aditya.RaviChandran

[CL 24994922 by jamie dale in ue5-main branch]
2023-04-11 14:22:33 -04:00
paul chipchase
6e57dd4c26 The content browser can now respond to packages changing on disk.
#rb Julien.StJean, Matt.Peters
#jira UE-177133
#preflight 64072b19ba12ba64167e20e6

- In the last year we have started to make changes to the package format to allow data to be stored in the same file, but not actually inside of the package itself (See FPackageTrailer) and we might consider moving some other data blobs there in the future. This change has meant that there are code paths that can change things with the package file, that don't actually call save package, such as the process that virtualizes assets and can leave incorrect, stale data in the content browser tool tip.
-- This means when a user virtualizes an asset, the tooltip might indicate that it has not been virtualized and the size of the file on disk has not been changed until they browser to a different folder and browse back to refresh. This has caused people to believe that the virtualization operation has failed.
- This change hooks up UContentBrowserAssetDataSource to trigger a EContentBrowserItemUpdateType::Modified event when ever the package file changes on disk.
- During package save this could trigger multiple EContentBrowserItemUpdateType::Modified events for the same package (one from saving and one from the file being modified) but it looks like duplicate events already occur (if the packages are checked out as part of the save, this will introduce another EContentBrowserItemUpdateType::Modified event). There is a TODO in the code that suggests we might want to spend time removing duplicates events before broadcasting the delegate but when profiling I found that the overhead is quite low. In one test, saving 20 packages cost 4ms for the events triggered by the save and an additional 4ms for the events triggered by the file changing on disk. With the margins being so low it still doesn't look like a problem that is worth spending time on, however I did add a TRACE_CPUPROFILER_EVENT_SCOPE to the broadcasting of the delegate (UContentBrowserDataSubsystem::ItemDataUpdatedDelegate) so if it does become a problem in the future it will be easier to track down.

[CL 24556355 by paul chipchase in ue5-main branch]
2023-03-08 04:32:05 -05:00
lauren barnes
17a57fa4fa Fall back to EditorConfig version of content browser settings where it exists, removing some settings from per-instance settings
#jira UE-175898
#preflight 63fe5ff8ac6c61e2b553eea1

[CL 24454235 by lauren barnes in ue5-main branch]
2023-02-28 18:18:28 -05:00
daren cheng
f0294a60e8 Prevent content browser ticks during inital content load
#preflight 63f3c49d91018822cc5310d5
#rb Dave.Belanger, Jamie.Dale

[CL 24327456 by daren cheng in ue5-main branch]
2023-02-20 17:05:53 -05:00
aditya ravichandran
db59eb4a2c Content Browser: Improve UX around unsupported assets
#preflight 63e15a201020773a3f0f987e
#rb Lauren.Barnes, Julien.StJean

[CL 24040935 by aditya ravichandran in ue5-main branch]
2023-02-06 18:22:57 -05:00
JeanMichel Dignard
38ef5daae8 Fixed truncation warnings in the ContentBrowser modules
#jira UE-166269
#rb yohann.dossantos
#preflight 63e12ffa797b029c0a6507fe

[CL 24032337 by JeanMichel Dignard in ue5-main branch]
2023-02-06 12:05:08 -05:00
julien stjean
55a1b3af29 Introducing the unsupported asset item for the content browser.
These are currently used to display the asset that are hidden by a backend class permission system.
They can also be restricted to some path only if desired.
Note: We will do a UX pass for the unsupported items after this is submitted and later we will also add some support for the unsupported asset to the alias data source.

#preflight 63dc23a7175a9839ac4cf474
#rb Jason.Stasik

[CL 24007061 by julien stjean in ue5-main branch]
2023-02-03 22:39:50 -05:00
steve robb
2a4d30b52b Fixes for TOptional forward includes.
#rb trivial
#preflight 63bcb733d862fdd3479bfbab

[CL 23631938 by steve robb in ue5-main branch]
2023-01-10 15:27:16 -05:00
scott nelson
92da116445 Add ability to filter CB folders for Editability + Fix AliasDataType usage of Public/Private assets
#rb Rex.Hill
#preflight 63b5d081ab0e99a2bed56c2d

[CL 23581927 by scott nelson in ue5-main branch]
2023-01-04 17:07:54 -05:00
rex hill
65aa9ec724 Content Browser - Expose some tool menu context properties to scripting
#preflight skip
#rnx

[CL 23399360 by rex hill in ue5-main branch]
2022-12-05 16:24:23 -05:00
jared cotton
db9180da10 Re-submission of 'view' method for AssetEditing (aware of merge issues that will arise in 23.00 and ready to resolve. Also ready with fix for issue that will arise when CL hits /Fortnite-Main in GLTFProxyAssetActions.h)
#rb Stanley.Hayes
#rb Jamie.Dale
#rb Jason.Stasik
#rb Yiliang.Siew
#preflight 635205e49e14ee3c7969c9bf

Iteration on Jason Stasiks CL 17314610. This is a minimal version of CL 17314610 which adds a 'view' method to AssetTypeActions which is now attempted whenever an activated item's 'edit' attempt fails.

The matching CL for the restricted FAssetTypeActions_VerseClass changes is 22472079.

[CL 22823595 by jared cotton in ue5-main branch]
2022-10-28 00:33:58 -04:00
bob tellez
3dec1bb8cb [Backout] - CL22782944
[FYI] jared.cotton
Original CL Desc
-----------------------------------------------------------------
Addition of 'view' method to AssetTypeActions

#rb Stanley.Hayes
#rb Jamie.Dale
#rb Jason.Stasik
#rb Yiliang.Siew
#preflight 635205e49e14ee3c7969c9bf

Iteration on Jason Stasiks CL 17314610. This is a minimal version of CL 17314610 which adds a 'view' method to AssetTypeActions which is now attempted whenever an activated item's 'edit' attempt fails.

The matching CL for the restricted FAssetTypeActions_VerseClass changes is 22472079.

[CL 22803476 by bob tellez in ue5-main branch]
2022-10-26 23:17:50 -04:00
jared cotton
a53b15247b Addition of 'view' method to AssetTypeActions
#rb Stanley.Hayes
#rb Jamie.Dale
#rb Jason.Stasik
#rb Yiliang.Siew
#preflight 635205e49e14ee3c7969c9bf

Iteration on Jason Stasiks CL 17314610. This is a minimal version of CL 17314610 which adds a 'view' method to AssetTypeActions which is now attempted whenever an activated item's 'edit' attempt fails.

The matching CL for the restricted FAssetTypeActions_VerseClass changes is 22472079.

[CL 22803451 by jared cotton in ue5-main branch]
2022-10-26 23:16:25 -04:00
robert millar
e6857190f2 Updating collection manager interface to use FSoftObjectPath for the paths of assets and objects rather than FName.
#jira UE-161932
#rb julien.stjean
#preflight https://horde.devtools.epicgames.com/job/6324e773f258fccf98de78cf

[CL 22064625 by robert millar in ue5-main branch]
2022-09-16 20:57:34 -04:00