Commit Graph

13 Commits

Author SHA1 Message Date
Phillip Kavan
b5863c2b95 Some minor refactoring to assist with handling removal/reassignment of Blueprint namespaces.
Change summary:
- Added a code path for removing a namespace from the BP editor context.
- Consolidated namespace helper instances into a single BP editor context.
- Extended the FBlueprintEditor::ImportNamespace() API to accept additional options and a post-import callback.
- Refactored the auto-import code path to fix issues with reassignment to/from an imported namespace.
- Decoupled SSubobjectBlueprintEditor from a namespace-aware callback in favor of a generalized "add" callback.
- Linked the CVar for inheriting parent BP imports to a transient BP setting (experimental/not user-facing).
- Consolidated code to gather global/default imports into a utility API so that namespace sets are consistent.
- Modified "Imports" view to include a "default imports" section (similar to inherited interfaces) - these are not removable.
- Moved "Inherited Interfaces" section to be sorted above the "Implemented Interfaces" section for consistency.
- Fixed SBlueprintNamespaceEntry to query for the current text rather than only setting it at construction time.

#jira UE-133288
#rb Ben.Hoffman
#preflight 621ff4b337049be51738bafe

[CL 19236263 by Phillip Kavan in ue5-main branch]
2022-03-02 20:48:04 -05:00
phillip kavan
4266aae5f3 Add non-imported class type filtering to the "Add Component" type selection UI in the Blueprint editor.
Additionally auto-import any namespace associated with the selected component class type when a new component is added.

Change summary:
- Modified the component type registry to internally create/store unloaded BP data to assist with unloaded BP component type filtering.
- Added FEditorClassUtils::GetImplementedInterfaceClassPathsFromAsset() to move BP interface asset tag processing into a shared utility API.
- Modified SComponentClassCombo to work with IClassViewFilter-style filtering and added a filter options menu (currently only visible when namespace filtering features are enabled via CVar).
- A few minor modifications/additions to SSubobjectEditor/SSubobjectBlueprintEditor to assist with interfacing with the owning FBlueprintEditor context for filtering, updating etc.

#jira UE-133294
#rb Ben.Hoffman
#preflight 61b7c0601a4451f7ba1d0c46

#ROBOMERGE-AUTHOR: phillip.kavan
#ROBOMERGE-SOURCE: CL 18449755 in //UE5/Release-5.0/... via CL 18449768
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v897-18405271)

[CL 18449772 by phillip kavan in ue5-release-engine-test branch]
2021-12-13 17:39:02 -05:00
jamie dale
1f97a96a67 Fixed the component tree potentially showing stale items
SSubobjectInstanceEditor::OnObjectReplaced was never bound, so we now just handle this directly in SActorDetails instead

#rb Ben.Hoffman
#preflight skip
#rnx

#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 18346293 via CL 18347479 via CL 18347485 via CL 18347489 via CL 18348493 via CL 18348565
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18348601 by jamie dale in ue5-release-engine-test branch]
2021-12-01 21:15:38 -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
patrick hardy
8457248408 Subobject editor recognizes HideAddComponentButton of ISCSEditorUICustomization.
#jira UE-121842
#rb Ben.Hoffman

#ROBOMERGE-SOURCE: CL 17295009 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v861-17282326)

[CL 17295016 by patrick hardy in ue5-release-engine-test branch]
2021-08-24 18:28:44 -04:00
ben hoffman
c3a0c9eb36 Add OnHighlightPropertyInDetailsView to the blueprint editor to account for the behavior required in the SCS diff tree
#jira UE-114839
#rb trivial
#rnx
#preflight 61006d750bf6fc000105bf1e

#ROBOMERGE-SOURCE: CL 16974617 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v838-16927207)

[CL 16974624 by ben hoffman in ue5-release-engine-test branch]
2021-07-27 18:00:09 -04:00
ben hoffman
4a312aa02e Add Apply modifications to blueprints to the context menu in the subobject instance editor.
Make SSubobjectEditor::CreateMenuBuilder non-const to allow for the binding of functions that can modify the actor instance like reseting to blueprint defaults

#jira UE-117764
#rb trivial
#rnx

#ROBOMERGE-SOURCE: CL 16662762 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v834-16658389)

[CL 16662779 by ben hoffman in ue5-release-engine-test branch]
2021-06-14 15:31:51 -04:00
ben hoffman
7c447b2d16 Keep track of the created slate nodes while updating tree in the local function scope instead of calling FindOrCreateSlateNodeForHandle because we cannot gaurantee that the grandparent node will be in the RootTree when creating subobjects.
#jira UE-116440
#rb marc.audy
#rnx
#preflight 60af061c0bdb270001096ce7

[CL 16480651 by ben hoffman in ue5-main branch]
2021-05-26 23:50:31 -04:00
ben hoffman
6136443612 make SSubobjectEditor::GetObjectContext and SSubobjectEditor::GetObjectContextHandle public accessible functions for users to extend
#jira UE-114839
#rb me
#rnx
#preflight 60a8250004188d00015f3492

[CL 16427326 by ben hoffman in ue5-main branch]
2021-05-21 20:19:06 -04:00
ben hoffman
97cbbf27a1 Override FindSlateNodeForObject in the Blueprint editor to handle getting the archetype of the actor compoent
#jira none
#rb me
#rnx
#preflight 60a3ec52fe43a7000191ff40

[CL 16371928 by ben hoffman in ue5-main branch]
2021-05-18 14:11:19 -04:00
ben hoffman
4a4287e291 Make SSubobjectEditor::DumpTree a public callable function for modules that may need to log information about their custom editor extensions outside of the context of the editor
#jira none
#rb trivial
#rnx

[CL 16271407 by ben hoffman in ue5-main branch]
2021-05-11 12:12:47 -04:00
ben hoffman
40261ec4f8 Update implementation of TryHandleAssetDragDropOperation
#jira UE-114839
#rb trivial
#rnx
#preflight 6092d029fc52ec00012dedd4

[CL 16210780 by ben hoffman in ue5-main branch]
2021-05-05 14:24:54 -04:00
ben hoffman
285a1503df Create the subobject Editor module that utilizes the new Subobject Data Interface instead of modifying subobjects directly in slate code.
#jira UE-114839
#rb phillip.kavan
#rnx
#preflight 609152aa90631e000199463e
#preflight 60919af859592e0001f41c7d

[CL 16198818 by ben hoffman in ue5-main branch]
2021-05-04 16:26:56 -04:00