Commit Graph

367 Commits

Author SHA1 Message Date
brooke hubert
c7647f82e9 [Selection] Fix an issue with the legacy sync event on USelection which resulted double notification to the element list on undo/redo, causing out of order updates when updating component visualizers
Upgraded this function to use the typed element selection set, which has combined actor and component selection, which removes the duplicate notify on the legacy bridge.

#Jira UE-190678
#rb jamie.dale logan.buchy

[CL 26490998 by brooke hubert in ue5-main branch]
2023-07-20 14:13:26 -04:00
ronald koppers
418efb82f4 Copying and duplicating temporary actors while PIE is active is disabled.
In response to reports that copy/pasting actors during PIE causing crashes, copying and duplicating temporary actors has been disabled. This is a temporary measure until the copy/paste system during PIE be evaluated more closely.

#jira none
#rb aditya.ravichandran

[CL 26094847 by ronald koppers in ue5-main branch]
2023-06-19 13:00:55 -04:00
joe pribele
17a9c2dc99 deprecated Engine::FindAndPrintStaleReferencesToObject as it was moved FReferenceChainSearch
https://p4-swarm.epicgames.net/reviews/25629892

#rb robert.millar
#preflight 646ff13227390642750296ec

[CL 25646604 by joe pribele in ue5-main branch]
2023-05-26 12:38:28 -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
patrick enfedaque
3099fd00f7 Fix bad Unsaved Asset count when Editing level instances:
- UEditorLevelUtils::PrivateRemoveLevelFromWorld: Avoid Modify being called on actor components and dirtying packages on remove world

#rb richard.malo, jeanfrancois.dube
#preflight 645a79ef013f3751586b155b
#rnx

[CL 25395014 by patrick enfedaque in ue5-main branch]
2023-05-09 16:27:53 -04:00
Mateo Egey
630ee0d41d Fixed undo/redo not allowing unregistering of undo clients during Broadcast. Since undo redo objects can be destroyed, the temporary copy would maintain the destroyed objects, pointing at garbage, causing crashes
#jira none
#rb logan.buchy
#preflight skip

[CL 25092326 by Mateo Egey in ue5-main branch]
2023-04-18 15:28:56 -04:00
andrew ladenberger
eeef4ed888 Resubmit CL 24807614 with compile fix
#rb none/trivial
[FYI] edwin.maynard

[CL 24811704 by andrew ladenberger in ue5-main branch]
2023-03-27 18:52:21 -04:00
edwin maynard
2ca2a59e53 [Backout] - CL24807641 (backed out due to compile error)
[FYI] andrew.ladenberger
Original CL Desc
-----------------------------------------------------------------
Added DetailMode Epic for more scalability options

- Mirrored to ParticleDetailMode (Cascade)
- Removed DetailMode_DEPRECATED (Cascade)

#rb simon.tovey, andrew.davidson
[FYI] bryce.lumpkin

[CL 24811650 by edwin maynard in ue5-main branch]
2023-03-27 18:50:59 -04:00
andrew ladenberger
a46c334c51 Added DetailMode Epic for more scalability options
- Mirrored to ParticleDetailMode (Cascade)
- Removed DetailMode_DEPRECATED (Cascade)

#rb simon.tovey, andrew.davidson
[FYI] bryce.lumpkin

[CL 24811624 by andrew ladenberger in ue5-main branch]
2023-03-27 18:50:15 -04:00
ronald koppers
0a53b11b03 Removed the EditorStorage world type.
The EditorStorage world type was introduced as MASS had a dependency on  having a world, but none of the existing worlds could be made to work. This limitation has since been removed from MASS which means there's no current use for EditorStorage. To avoid adding additional maintenance and since EditorStorage was introduce within 5.2, it's now being removed before release. If a use case is found at a later time, this CL can be used to reintroduce EditorStorage.

#jira UE-180332
#rb Mieszko.Zielinski
#preflight 6419d4bb13231a282690c8b4
#lockdown jeanmichel.dignard

[CL 24739070 by ronald koppers in ue5-main branch]
2023-03-21 16:38:36 -04:00
dan parkes
df08722387 [UEFN] Improve Audio Player device viewport focus functionality
#rb max.hayes stu.mckenna michael.galetzka
#preflight 64109b84924023147d3f59e5

[CL 24643691 by dan parkes in ue5-main branch]
2023-03-14 16:39:55 -04:00
KasumiL5x
1bfb0518e2 Make UEditorEngine::BroadcastPostUndoRedo() resilient to callbacks registering for PostUndoRedo event
The engine broadcasts undo/redo messages in UEditorEngine::BroadcastPostUndoRedo() to all registered FEditorUndoClient instances in a loop over a TSet<FEditorUndoClient*>. In the current code, if an FEditorUndoClient instance causes a registration with the undo system in either PostUndo() or PostRedo(), then the loop will never terminate, as a new element is added each iteration, causing an infinite loop.
This change opts to iterate over a copy of the TSet<FEditorUndoClient*> which therefore avoids the infinite loop without fundamentally restricting clients from unregistering/registering during the PostUndo()/PostRedo() calls.

#jira UE-177977
#10149
#preflight 6410a8b7924023147d43bd2d

[CL 24638980 by KasumiL5x in ue5-main branch]
2023-03-14 13:13:39 -04:00
zach bethel
5ad5368df1 Removing unused 'ViewParent' feature and other dead code.
#rb krzysztof.narkowicz
#preflight 640a3f3e482188d710bc19a2

[CL 24581280 by zach bethel in ue5-main branch]
2023-03-09 15:33:59 -05:00
Florin Pascu
106ea7508c Preparation changes for removing FeatureLevel from World
FeatureLevel is Deprecated
Add Setter/Getter for FeatureLevel
NextStep: Make GetFeatureLevel returns DDSPI::GetFeatureLevel, remove FeatureLevel memberfrom UWorld
#jira UE-168551
#rb christopher.waters
#preflight 63ff5e49f43e53f6811c86a4

[CL 24461796 by Florin Pascu in ue5-main branch]
2023-03-01 09:41:33 -05:00
paul chipchase
97f6f0eebb Fix the generation of duplicate bulkdata identifiers when creating new levels from templates containing bulkdata payloads.
#rb Matt.Peters
#jira UE-174329
#rnx
#preflight 63c95073ac35a0e9da7f2c30

- This replaces the solution to the same problem that was submitted in CL 21587137.
- Instead of trying to pass the need to regenerate the guids via FLinkerInstancingContext it is now done via ELoadFlags.
- The fix was originally added to FLinkerInstancingContext as a) at the time a similar fix had been made to instancing b) we felt it would be easier to remove in the future when we change how the guids are calculated making the need to regenerate moot. However this stopped working when 22635658 prevented the instancing context from being passed to objects not being instanced. The concept was a better fix for the flags so it has been moved there.

[CL 23787156 by paul chipchase in ue5-main branch]
2023-01-20 03:07:24 -05:00
luc eygasier
82b1638bf2 Replaces blocking dialog when copy/pasting landscape actor by a slowtask.
Introduces slow task dialog when importing/exporting heavy actors.

#preflight 63c5700d0b358b97d1345382
#rb Jonathan.Bard, Aditya.Ravichandran

[CL 23757054 by luc eygasier in ue5-main branch]
2023-01-18 11:28:35 -05:00
jeanmichel dignard
37eaa20602 Exec commands changes:
- Port some editor only exec commands to Exec_Editor.

#rb none
#preflight 63c5a00dd040694ab814f875

[CL 23732860 by jeanmichel dignard in ue5-main branch]
2023-01-16 17:05:05 -05:00
christopher waters
7215f7d4ec Fully moving MaterialDomain to its own header.
#jira none
#preflight 639b4dc335203bc7aa695078

[CL 23531533 by christopher waters in ue5-main branch]
2022-12-15 16:01:51 -05:00
ronald koppers
24dfaad953 Introduces a new world type "EditorStorage".
The "EditorStorage" world is meant to be used to store data for the entire lifetime of the editor process. As such it's not destroyed when new levels are loaded and is meant to be constructed with minimal setup to avoid overhead. This new world type is currently used in the Typed Elements Data Storage which serves as the central database-like storage for the editor and is powered by MASS. The latter currently requires a world for interacting with the outside through subsystems and to be periodically ticked to make sure data remains consistent. The changes that make use of this will be submitted separately to keep this CL focused.

#rb Ben.Zeigler
#jira UE-171267
#preflight 638a816535192facc1dffbb5

[CL 23396289 by ronald koppers in ue5-main branch]
2022-12-05 14:07:13 -05:00
paul chipchase
b496d2d30e Fix a casting bug that was causing larger values of [Undo]UndoBufferSize to be truncated.
#rb Sebastian.Nordgren
#jira none
#preflight 636cd0eadc30a4ce964ccffb

- The size of the undo buffer being loaded from the config file is a int32, but UTransBuffer::Initialize takes a SIZE_T, this was causing unintended conversions. We now cast the int32 to SIZE_T before calculating the final total in bytes.
- Added some logging so the user has some way to verify how large their undo buffer size is.

[CL 23074652 by paul chipchase in ue5-main branch]
2022-11-10 05:28:29 -05:00
patrick enfedaque
091aaaa600 Fix Level & Volume dirtyness:
- Avoid calling RebuildAlteredBSP() on Copy/Paste operations so that Level doesn't get dirtied if pasted actors aren't static brushes
- RebuildModelFromBrushes always checks selection of Dynamic brushes before rebuilding them

#jira UE-169320
#rb richard.talbotwatkins
#preflight 636be83aed07daaa9a77492b

[CL 23071817 by patrick enfedaque in ue5-main branch]
2022-11-10 01:08:24 -05:00
CarlMagnus Nordin
b48cb7ed39 AssetLoadingInsights:
Fixed recursive post loads not being tracked properly
Fixed time calculations for recursive scopes
Added support for load time tracing in the editor
Added time selection filtering to the requests tab
#rb ionut.matasaru
#preflight 635fa5cd1803be35c7ff3bc8

[CL 22858164 by CarlMagnus Nordin in ue5-main branch]
2022-10-31 07:09:17 -04:00
Phillip Kavan
adfd275c83 Minor revisions to reference replacement after BP reinstancing to allow external CDO references to be replaced during PIE/simulation.
Change summary:
- Added FReplaceInstancesOfClassParameters::bReplaceReferencesToOldCDOs.
- Deprecated FBatchReplaceInstancesOfClassParameters, consolidated flags into FReplaceInstancesOfClassParameters.
- Deprecated FReplaceInstancesOfClassParameters::OldClass and NewClass and the ctor that took them as inputs - these are now consolidated into a single ReplaceInstancesOfClass() API that takes them as inputs along w/ the parameter struct.
- Consolidated/deprecated FBlueprintCompileReinstancer::ReplaceInstancesOfClass()/BatchReplaceInstancesOfClass() APIs; updated existing call sites to match.
- Modified ReplaceInstancesOfClass_Inner() to take params directly as input; also revised the block that handled CDO reference replacement to utilize the new flag instead.
- Added a few new checks/ensures to validate the "legacy" path when certain parameters are in use.
- Modified the FBlueprintCompilationManagerImpl::FlushReinstancingQueueImpl() signature to include a new option flag.
- Added EBlueprintCompileOptions::IncludeCDOInReferenceReplacement (new compiler flag).
- Modified FBlueprintCompilationManagerImpl::CompileSynchronouslyImpl() to test for the new compiler flag and pass through to FlushReinstancingQueueImpl().
- Modified FBlueprintEditor::Compile() to set the new compiler flag when IsPlayInEditorActive() is true.

Notes:
- FReplaceInstancesOfClassParameters::bClassObjectReplaced is a legacy flag that was not currently in use outside of the old hot reload path; it remains in place for backwards-compatibility but I've added an ensure() to guard against it being used incorrectly outside of that context.

#jira UE-143731
#rb Dave.Jones2, Dan.OConnor
#preflight 63447e7ba502e110c762c17b

[CL 22483496 by Phillip Kavan in ue5-main branch]
2022-10-12 15:11:06 -04:00
JeanFrancois Dube
ae4e553a4b Convert usage of GIsEditorLoadingPackage to TGuardValue.
#jira none
#rb sebastien lussier
#preflight 633ad2ea2a5690003a0e03f4

[CL 22298365 by JeanFrancois Dube in ue5-main branch]
2022-10-03 08:33:10 -04:00
Matt Peters
740048891c UWorld - change bIsWorldInitialized to be reset to false when CleanupWorld is called. Delete the old bInitializedAndNeedsCleanup since bIsWorldInitialized now means the same thing. Add the new bHasEverBeenInitialized to provide the information bIsWorldInitialized used to provide (used in FinishDestroy and in a few other places).
This fixes cooking with EditorDomain, which can save the package multiple times and thereby call InitWorld/CleanupWorld multiple times.
#jira UE-164777
#rb Patrick.Enfedaque, JeanFrancois.Dube
#rnx
#preflight 63375a47f76de2d4d5cc8532

[CL 22281969 by Matt Peters in ue5-main branch]
2022-09-30 17:56:01 -04:00