Commit Graph

182 Commits

Author SHA1 Message Date
robert millar
7385ad9ece UX for updating redirectors
- Refactor AssetViewUtils::LoadAssetsIfNeeded to take settings struct and return enum code.
- Allow cancelling when loading redirectors or when loading referencers.
- Use AssetViewUtils::LoadAssetsIfNeeded in asset view context menu a well as folder tree to unify progress/cancellation for both

[CL 32159723 by robert millar in ue5-main branch]
2024-03-11 13:52:43 -04:00
yafes sahin
8c78548e84 - IAssetTools.h expose bPrompt and create bIgnoreDependencies
- AssetTools.cpp add a case to only copy the selected assets and ignore the dependencies (usecase for automation)
- Added BP example that implements the scripted asset action with the new migrationOption

#rb Julien.StJean, Takashi.Kuribayashi
[FYI] Michael.Lentine
#tests

[CL 31930249 by yafes sahin in ue5-main branch]
2024-02-29 19:11:14 -05:00
robert millar
396fb96f1d Fix up redirectors flow update
- Rename menu entries to Update (Redirector) Referencers
- No separate options for fixup vs fixup and keep
- After fixup, prompt user to delete redirectors if project settings allow
- After fixup, show users what files could not be checked out/saved and what redirectors remain

#rb brooke.hubert

[CL 31699181 by robert millar in ue5-main branch]
2024-02-21 17:10:19 -05:00
alex kahn
4f00bd4dab [Backout] - CL31691763 - CIS Compile Error
#rnx
[FYI] robert.millar
Original CL Desc
-----------------------------------------------------------------
Fix up redirectors flow update
- Rename menu entries to Update (Redirector) Referencers
- No separate options for fixup vs fixup and keep
- After fixup, prompt user to delete redirectors if project settings allow
- After fixup, show users what files could not be checked out/saved and what redirectors remain

#rb brooke.hubert

[CL 31696448 by alex kahn in ue5-main branch]
2024-02-21 16:07:05 -05:00
robert millar
872b6adee6 Fix up redirectors flow update
- Rename menu entries to Update (Redirector) Referencers
- No separate options for fixup vs fixup and keep
- After fixup, prompt user to delete redirectors if project settings allow
- After fixup, show users what files could not be checked out/saved and what redirectors remain

#rb brooke.hubert

[CL 31691912 by robert millar in ue5-main branch]
2024-02-21 14:16:54 -05:00
julien stjean
ca34575235 Fix the blocked import of a folder when using the extension permissions.
Also I moved the permissions logic closer to the code that actually handle the import.

#rb Alexis.Matte

[CL 31685813 by julien stjean in ue5-main branch]
2024-02-21 11:41:24 -05:00
andrew phillips
9efd415bc4 Using header patcher instead of root asset package patcher
Based on CL 30214572

Addeds Patching call to IAssetTools.
Consumes the call in a task in the DuplicatePluginCommandlet
#jira UE-199075
#rb Justin.Marcus

[CL 30595853 by andrew phillips in ue5-main branch]
2024-01-12 12:06:14 -05:00
dave belanger
5fb2a47448 Replace IContentBrowserSingleton::CanChangeAssetPublicState by IAssetTools::CanAssetBePublic
#rb scott.nelson
#rnx

[CL 30090129 by dave belanger in ue5-main branch]
2023-12-04 14:13:00 -05:00
marco anastasi
4fc92d88f3 * Create 'Check in before syncing older snapshot' dialog
* Create Warning dialog for further rewind
* Implement 'Sync snapshot' functionality
* Implement 'Rewind to' functionality

#rb wouter.burgers

[CL 30015297 by marco anastasi in ue5-main branch]
2023-11-30 10:36:24 -05:00
mateo egey
cee00f7328 Multitude of small changes and fixes to content browser & asset picker.
- Removed unused function

- Added 'FX' asset type category for Niagara purposes that maps to the FX asset category path for default expansion purposes

- Restored functionality for default filter category expansion. This code seemed abandoned. The category expansion could be specified in the asset picker config, but in the end was ignored and the Basic asset path was used instead. This uses a Convert function to go from AssetTypeCategory -> AssetCategoryPath. There is no 1:1 mapping, so it falls back to Basic if necessary. Changing the type in the asset picker config would be cleaner, but isn't straight forward due to FAssetCategoryPath needing to be exposed to all modules that include the content browser module

- Tweaked OnExtendAddFilterMenu delegate. It's now a global delegate, making it unnecessary to handle template shenanigans to access it.
AssetPickerConfig has a new option to provide this OnExtendAddFilterMenu externally. As the 'Common' category still shows up if we expand the FX category (since Niagara System is part of Basic & FX), we can use this to remove unwanted filters
The delegate is called on the dynamic menu section before the widget generation

- Added PinAllFrontendFilters argument. This is useful if you have a small amount of filters available so that you want to display them all by default

Big code cleanup:
- MakeAddFilterMenu is now marked as final to help with API consistency.
- Added new 'CreateAssetFilterBarContext` virtual function. This is now the unified way of configuring your menu.
- The context now contains the FOnFilterAssetType delegate, and the OnExtendAddFilterMenu delegate. This allows subclasses to keep their original functionality, while having a central place to tweak it
- Removed the old content browser context as it's no longer used
- Exposed the menu name. Kept old names consistent. This allows to reuse menus, or create new ones.
- Moved the right click context filter UI of the content browser into the SAssetFilterBar. Now all SAssetFilterBars can do this. Removed the OnGetContextMenu delegate that was only used in one place
- Removed various functions that are no longer needed

#rb rex.hill, aditya.ravichandran

#ushell-cherrypick of 28538117 by Mateo.Egey

[CL 28705843 by mateo egey in ue5-main branch]
2023-10-12 07:03:37 -04:00
jason stasik
59abe9e7a2 Create IAssetTools::IsAssetVisible and hook up material function menu to it
#rb dave.belanger,jason.nadro

[CL 27933398 by jason stasik in ue5-main branch]
2023-09-15 16:55:30 -04:00
jason stasik
44b79721ba [Backout] - CL27896400
[FYI] Jason.Stasik
Original CL Desc
-----------------------------------------------------------------
Create IAssetTools::IsAssetVisible and hook up material function menu to it
#rb dave.belanger,jason.nadro

[CL 27897936 by jason stasik in ue5-main branch]
2023-09-14 18:02:00 -04:00
jason stasik
4dbe81a3cb Create IAssetTools::IsAssetVisible and hook up material function menu to it
#rb dave.belanger,jason.nadro

[CL 27896467 by jason stasik in ue5-main branch]
2023-09-14 17:29:16 -04:00
jeanfrancois dube
da95707995 World Partition: move data layer and hlod layer asset into the world category.
#rb richard.malo
[FYI] jeansebastien.guay

[CL 27797977 by jeanfrancois dube in ue5-main branch]
2023-09-12 13:14:25 -04:00
julien stjean
2a0e0ff7da Removing the deprecated functions for the class permission list from the asset tools api.
#rb rex.hill

[CL 26809677 by julien stjean in ue5-main branch]
2023-08-03 10:14:35 -04:00
julien stjean
7d9e87d4a6 Added a missing meta data to tell the Blueprints that the AssetTools::MigratePackages function shouldn't be pure.
#rb none

[CL 26529748 by julien stjean in ue5-main branch]
2023-07-21 18:48:12 -04:00
logan buchy
8cb8cff1ba Feedback changes to Collections telemetry
* Moved workflow tracking of collection manipulations up one level to target user interaction only
* Added create/destroy collection workflows
* Remove hand-holding utilities aimed to ease verbosity of telemetry event generation

#rb wes.hunt
#jira UE-155132
#preflight 6463b34f063e77985c259c71

[CL 25492328 by logan buchy in ue5-main branch]
2023-05-16 13:02:13 -04:00
kirill zorin
de8db5ff76 Converting ARO-facing raw pointers to TObjectPtr ahead of raw pointer ARO API deprecation.
#rb zousar.shaker
#rb markus.breyer
#rb robert.manuszewski

#preflight 646391406b1406b54ab15460

[CL 25489627 by kirill zorin in ue5-main branch]
2023-05-16 10:52:49 -04:00
will brown
aa2ce737b0 Fixing a bug that occurs when creating a new plugin from a template containing .uasset files. It's possible for the plugin to fail to register if the post copy rename is triggered while the asset registry scan is still pending. The calling code assumes that the rename is synchronous however it can defer the operation and return. This puts the plugin in a bad state.
Showing the asset discovery dialog and preventing the plugin creation until the asset discovery is complete.

#rb Rex.Hill
#preflight 645008286538e45f75c38ccb

[CL 25292941 by will brown in ue5-main branch]
2023-05-01 17:48:02 -04:00
rex hill
4a9460be92 Add export class permission list
#preflight 643446394c3ccbbdf17e8269
#rnx
#rb dave.belanger

[CL 24994901 by rex hill in ue5-main branch]
2023-04-11 14:22:04 -04:00
wouter burgers
8ff2c6c41f SourceControl: Add start/finish delegates to AssetViewUtils sync operations.
[REVIEW] [at]dave.belanger, [at]manuel.lang, [at]brooke.hubert
#preflight none

#localization none
#tests manual

[CL 24412834 by wouter burgers in ue5-main branch]
2023-02-24 19:03:48 -05:00
jordan hoffmann
31d4eed6e5 Unshelved from pending changelist '24180955':
[CrashFix] Removed invalid check()
- when I made assets diffable against null I must've missed this. Easy fix.

#jira none
#preflight trivial
#rb dan.oconnor
#lockout julien.marchand

[CL 24186475 by jordan hoffmann in ue5-main branch]
2023-02-13 15:23:03 -05:00
wouter burgers
0aa122ff5c SourceControl: Added notification if sync fails when getting latest, similar to the warning shown by FSourceControlWindows::PromptForCheckin for checkin fails.
In addition, I refactored AssetViewUtils::SyncPathsFromSourceControl somewhat.
- Added alternative (preferred) way to get affected files/packages using the FSyncPreview operation as opposed to querying the AssetRegistry.
- Added support for hot reloading the world if one of its external packages (actor/object) got synced so those changes are reflected in the viewport.
- Added support for passing in either content paths or absolute paths to sync.

- Deprecated the 'bIsSyncLatestOperation' parameter from SyncPackagesFromSourceControl.

Note that SyncPackagesFromSourceControl now has a single internal caller (FAssetSourceControlContextMenuState::ExecuteSCCSync).
Note that SyncPathsFromSourceControl now has a single internal caller (FSourceControlWindows::SyncLatest).

[REVIEW]
#preflight 63e3a014244dc45a201c918d

[CL 24074948 by wouter burgers in ue5-main branch]
2023-02-08 12:17:26 -05:00
alexis matte
a20c1131ce Change asset tools import extension support to FNamePermissionList instead of FString. This allow to control the permissions like all the other permission.
#rb jeanluc.corenthin
#preflight 63e24fad07207b2570b72285

[CL 24049361 by alexis matte in ue5-main branch]
2023-02-07 10:49:14 -05:00
alexis matte
b93fee971d Create a system to control which extension importer should support.
#rb jeanluc.corenthin
#rnx
#preflight 63d7eb4cba4fadeef006c7d7

[CL 23923306 by alexis matte in ue5-main branch]
2023-01-31 01:12:25 -05:00