Commit Graph

17 Commits

Author SHA1 Message Date
ben hoffman
8a5e83a821 Fix a bug where you could not delete an instance-added subobject after it was added to an actor
#jira UE-149833
#rb benjamin.fox
#rnx
#preflight 6328b4e8b40000c8f021359f

[CL 22087368 by ben hoffman in ue5-main branch]
2022-09-19 22:29:10 -04:00
ben hoffman
e629c84afb Only create a new default subobject when destroying a component if the owner's class is not native. Native owner classes do not have to have a DefaultSceneRoot when you drag in the C++ class directly from the content browser into the level.
#jira UE-130740
#rb marc.audy
#preflight 623a33f4b3653cf6afe52385

[CL 19482791 by ben hoffman in ue5-main branch]
2022-03-23 14:41:32 -04:00
aurel cordonnier
34f55d3a4a Merge from Release-Engine-Test @ 17946149 to UE5/Main
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17949667 by aurel cordonnier in ue5-main branch]
2021-10-27 15:14:40 -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
ben hoffman
1eb5090127 Do not allow copying or duplicating subobjects with the name of "DefaultSceneRoot". This will prevent confusing renaming situations where the DefaultSceneRoot could be deleted, but still be preventing other subobjects from being named that
#jira UE-119104
#rb todo
#rnx
#preflight 60ff101a47c93a00010d9d2e

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

[CL 16961064 by ben hoffman in ue5-release-engine-test branch]
2021-07-26 16:58:12 -04:00
ben hoffman
4612c508e4 Add a fallback method of determining the instanced component to use as an asset override in the event that a subobjec thas been added but is not a part of the generated class yet. Do this by checking if the archetype of the GEN_VARIABLE subobject and one on the instance are the same.
#jira UE-119138
#rb trivial
#rnx
#preflight 60f0b58a57b3020001337e09

#ROBOMERGE-SOURCE: CL 16869367 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16869384 by ben hoffman in ue5-release-engine-test branch]
2021-07-15 19:43:19 -04:00
ben hoffman
3cc5f3f1bb Check not only the SimpleConstructionScript's DefaultSceneRootNode, but also the SceneRootComponentTemplate when determining if a subobject is the default scene root. This handles cases where the DefaultSceneRoot node has been updated (like when you drag/drop a new scene component onto it in the Subobject Editor)
#jira UE-117876
#rb marc.audy
#rnx

#ROBOMERGE-SOURCE: CL 16854920 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16854923 by ben hoffman in ue5-release-engine-test branch]
2021-07-14 16:38:11 -04:00
ben hoffman
9433745359 Add an additional check when determining the default scene root to see if a native subobject is the root of it's owning actor.
#jira UE-117126
#rb trivial
#rnx
#preflight 60ee0c9119a00600011f491a

#ROBOMERGE-SOURCE: CL 16844692 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16844694 by ben hoffman in ue5-release-engine-test branch]
2021-07-13 19:29:19 -04:00
ben hoffman
162f09e820 Correctly check if a component is inherited before allowing it to be reparented
#jira UE-118270
#rb trivial
#rnx

#ROBOMERGE-SOURCE: CL 16837483 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16837486 by ben hoffman in ue5-release-engine-test branch]
2021-07-13 10:54:11 -04:00
ben hoffman
1b38a5881b Instead of checking if something is a child actor component when attempting to maniuplate it, check if its owner is a CAC instead. If it's owner is a CAC, then it cannot be removed because it is determined by the owning CAC. Before, the code was incorrectly checking if something was just a plain old child actor component, resulting in being unable to delete, reparent, or attach to a child actor component.
#jira UE-117132
#jira UE-117332
#jira UE-117327
#jira UE-117329

#rb marc.audy
#rnx

#preflight 60d48296925f1400010bb909

#ROBOMERGE-SOURCE: CL 16773601 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16773618 by ben hoffman in ue5-release-engine-test branch]
2021-06-24 10:56:30 -04:00
ben hoffman
00511fe56b Add a GetDragDropDisplayText function to subobject data to allow for easier conversions to FText for drag/drop operations
#jira UE-117068
#rb trivial
#rnx
#preflight 60c2657279a7fe00017a3617

#ROBOMERGE-SOURCE: CL 16629717 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v831-16623017)

[CL 16629728 by ben hoffman in ue5-release-engine-test branch]
2021-06-10 16:39:14 -04:00
ben hoffman
e721e08e6b Correctly check for a root component that is native with a different name than the default. This will allow other systems such as drag/drop to evaulate correctly when the subobject editor is asked to find the default scene root given only the actor instance.
#jira UE-115866
#rb trivial
#rnx
#preflight 60a2c69e07285b0001e432aa

#ROBOMERGE-SOURCE: CL 16358813 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v804-16311228)

[CL 16358823 by ben hoffman in ue5-release-engine-test branch]
2021-05-17 16:43:26 -04:00
ben hoffman
28218a846b Correctly add "(Inherited)" in the case of a native component in the instance editor. Do not display the native component name for instance inhertied bluerpint subobjects.
#jira UE-115866
#rb trivial
#rnx
#preflight 60a290f54f034a000179f3b2

#ROBOMERGE-SOURCE: CL 16354780 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v804-16311228)

[CL 16354797 by ben hoffman in ue5-release-engine-test branch]
2021-05-17 13:04:53 -04:00
ben hoffman
16904b9aaa Remove unused variables in SubobjectData.cpp
#jira none
#rb trivial
#rnx
#preflight 609fcf63ae0db000015d9b68

#ROBOMERGE-SOURCE: CL 16341106 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v804-16311228)

[CL 16341110 by ben hoffman in ue5-release-engine-test branch]
2021-05-15 10:18:20 -04:00
ben hoffman
8ec70676c4 Fix incorrect color tinting of icons in inherited blueprints
#jira none
#rb trivial
#rnx
#preflight 609ee4144a67ba0001f24a05

#ROBOMERGE-SOURCE: CL 16336865 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v804-16311228)

[CL 16336878 by ben hoffman in ue5-release-engine-test branch]
2021-05-14 17:55:54 -04:00
ben hoffman
892125ab98 Correctly return true for CanEdit() on a FSubobjectData that is an instance-added component, such as the default scene root on an empty actor.
#jira none
#rb trivial
#rnx

[CL 16232124 by ben hoffman in ue5-main branch]
2021-05-06 21:44:04 -04:00
ben hoffman
61908bed8a Create the Subobject Data interface module. This provides an API that can be used to manipulate Subobjects such as adding/removing components, reparenting, and changing the scene heirarchy.
The SubobjectDataSubsystem is how users can manipulate a given object within Blueprints or Python scripting. Given a Uobject instance in a level or a UBlueprint asset, you can use GatherSubobjectData to get get an array of handles that you can use to manipulate that subobject.

This is what the new SubobjectEditor (Previously the SCS editor) will be using instead of having all its logic within slate code.

#rb marc.audy
#jira UE-64131
#preflight 6082ce4f8de3a60001cf6af8
#preflight 6082d84a92d7e700019f53e0

[CL 16104548 by ben hoffman in ue5-main branch]
2021-04-23 11:01:15 -04:00