Commit Graph

253 Commits

Author SHA1 Message Date
Andrew Rodham
f48639382a Sequencer: Only ever call FixupForPIE for bindings that are being resolved within a World context that has a PIE instance ID
Sometimes binding resolution can be triggered inside a call stack that has a GPlayInEditorID, even if the bindings and resolution context do not. In these situations we were previously erroneously calling FixupForPIE before resolving the soft object path, and ending up finding the PIE actor instead of the one that's actually inside the world context provided. We now explicitly override the GPlayInEditorID for bindings based on the provided context object.

#jira UE-155681
#rb Max.Chen, Ludovic.Chabant
#preflight 62a22c12c12a722b4f065fb1

[CL 20581176 by Andrew Rodham in ue5-main branch]
2022-06-09 14:00:26 -04:00
Max Chen
06ed881423 Sequencer: Add guards when IsSavingPackage or IsGarbageCollecting before calling FindObject
Illegal call to StaticFindObjectFast() while serializing object data or garbage collecting.

#jira UE-155821
#preflight 629cef52ff562cb75c74b483
#rb mike.zyracki

[CL 20527156 by Max Chen in ue5-main branch]
2022-06-06 16:37:03 -04:00
matt peters
f7fa573932 ANY_PACKAGE Removal: ULevelSequence::PostLoadAssetRegistryTags needs to postload blueprint tags.
#rb None, trivial
#rnx
#preflight None, trivial

#ROBOMERGE-OWNER: matt.peters
#ROBOMERGE-AUTHOR: matt.peters
#ROBOMERGE-SOURCE: CL 20464583 via CL 20464597 via CL 20464639 via CL 20464640
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v952-20449836)

[CL 20466212 by matt peters in ue5-main branch]
2022-06-02 03:01:54 -04:00
robert manuszewski
d1443992e1 Deprecating ANY_PACKAGE.
This change consists of multiple changes:

Core:
- Deprecation of ANY_PACKAGE macro. Added ANY_PACKAGE_DEPRECATED macro which can still be used for backwards compatibility purposes (only used in CoreUObject)
- Deprecation of StaticFindObjectFast* functions that take bAnyPackage parameter
- Added UStruct::GetStructPathName function that returns FTopLevelAssetPath representing the path name (package + object FName, super quick compared to UObject::GetPathName) + wrapper UClass::GetClassPathName to make it look better when used with UClasses
- Added (Static)FindFirstObject* functions that find a first object given its Name (no Outer). These functions are used in places I consider valid to do global UObject (UClass) lookups like parsing command line parameters / checking for unique object names
- Added static UClass::TryFindType function which serves a similar purpose as FindFirstObject however it's going to throw a warning (with a callstack / maybe ensure in the future?) if short class name is provided. This function is used  in places that used to use short class names but now should have been converted to use path names to catch any potential regressions and or edge cases I missed.
- Added static UClass::TryConvertShortNameToPathName utility function
- Added static UClass::TryFixShortClassNameExportPath utility function
- Object text export paths will now also include class path (Texture2D'/Game/Textures/Grass.Grass' -> /Script/Engine.Texture2D'/Game/Textures/Grass.Grass')
- All places that manually generated object export paths for objects will now use FObjectPropertyBase::GetExportPath
- Added a new startup test that checks for short type names in UClass/FProperty MetaData values

AssetRegistry:
- Deprecated any member variables (FAssetData / FARFilter) or functions that use FNames to represent class names and replaced them with FTopLevelAssetPath
- Added new member variables and new function overloads that use FTopLevelAssetPath to represent class names
- This also applies to a few other modules' APIs to match AssetRegistry changes

Everything else:
- Updated code that used ANY_PACKAGE (depending on the use case) to use FindObject(nullptr, PathToObject), UClass::TryFindType (used when path name is expected, warns if it's a short name) or FindFirstObject (usually for finding types based on user input but there's been a few legitimate use cases not related to user input)
- Updated code that used AssetRegistry API to use FTopLevelAssetPaths and USomeClass::StaticClass()->GetClassPathName() instead of GetFName()
- Updated meta data and hardcoded FindObject(ANY_PACKAGE, "EEnumNameOrClassName") calls to use path names

#jira UE-99463
#rb many.people
[FYI] Marcus.Wassmer
#preflight 629248ec2256738f75de9b32

#codereviewnumbers 20320742, 20320791, 20320799, 20320756, 20320809, 20320830, 20320840, 20320846, 20320851, 20320863, 20320780, 20320765, 20320876, 20320786

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20430220 via CL 20433854 via CL 20435474 via CL 20435484
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20448496 by robert manuszewski in ue5-main branch]
2022-06-01 03:46:59 -04:00
Max Chen
0167d4ea0f Sequencer: MVVM2 branch and Layer Bars
Copying //Tasks/UE5/Dev-SequencerMVVM2 to Main (//UE5/Main) @20364093

#preflight 628866dfb94f739b152c1e29
#preflight 628866e4585e8f793ee80943
#rb ludovic.chabant, andrew.rodham
#fyi ludovic.chabant, andrew.rodham, andrew.porter
#jira UE-105322

[CL 20364493 by Max Chen in ue5-main branch]
2022-05-25 10:39:33 -04:00
robert manuszewski
f8a812a32f Converting hardcoded short class/enum names to pathnames ahead of ANY_PACKAGE removal
#rb trivial
#jira UE-99463
#preflight 6288fd998828ea88c8aef3d0

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20314896 via CL 20314897 via CL 20314903 via CL 20314904
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20315214 by robert manuszewski in ue5-main branch]
2022-05-22 10:30:02 -04:00
andrew rodham
d111e493cf Sequencer: Replicate ALevelSequenceActor::LevelSequenceAsset and initialize the player if it changes
#rb Max.Chen

#ROBOMERGE-AUTHOR: andrew.rodham
#ROBOMERGE-SOURCE: CL 20187214 via CL 20188752 via CL 20189858 via CL 20189882 via CL 20189900
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20191995 by andrew rodham in ue5-main branch]
2022-05-13 19:15:08 -04:00
max chen
f93b723f3a Sequencer: Fix build
#rb andrew.rodham
#preflight 6270563191629533ec2b6f79

#ROBOMERGE-AUTHOR: max.chen
#ROBOMERGE-SOURCE: CL 20031840 via CL 20033163 via CL 20033359 via CL 20033426
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20035203 by max chen in ue5-main branch]
2022-05-03 19:51:12 -04:00
max chen
bf7eb82263 Sequencer/Valkyrie: Track class permissions for what tracks can be added to movie scene.
Event Track and ConsoleVariable Track are disabled. Spawn Track is also disabled, which means you can't create spawnables in Valkyrie

Added FIsTrackClassAllowed to MovieScene which is bound in MovieSceneToolsModule to look at the class viewer rules.
Fix logic in MediaTrackEditor and LiveLinkPropertyTrackEditor which was always returning Supported for level sequences.

#preflight 6270563191629533ec2b6f79
#rb andrew.rodham

#ROBOMERGE-OWNER: max.chen
#ROBOMERGE-AUTHOR: max.chen
#ROBOMERGE-SOURCE: CL 20031346 via CL 20033139 via CL 20033318 via CL 20033325
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20035188 by max chen in ue5-main branch]
2022-05-03 19:50:52 -04:00
lonnie li
9afef43f8f LevelSequence: Export symbols for FBoundActorProxy.
#rb andrew.rodham
#preflight skip

#ROBOMERGE-AUTHOR: lonnie.li
#ROBOMERGE-SOURCE: CL 19928541 via CL 19928933 via CL 19929485
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19931490 by lonnie li in ue5-main branch]
2022-04-26 19:05:25 -04:00
andrew rodham
641765bc37 Moved #include to header to appease generated cpp
#rb none

#ROBOMERGE-AUTHOR: andrew.rodham
#ROBOMERGE-SOURCE: CL 19849791 via CL 19849836 via CL 19861052 via CL 19861138
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19869756 by andrew rodham in ue5-main branch]
2022-04-22 15:11:03 -04:00
andrew rodham
db43093be3 Sequencer: Added functions for getting the master sequence time, and local sub sequence time to Level Sequence Directors
#rb Max.Chen

#ROBOMERGE-AUTHOR: andrew.rodham
#ROBOMERGE-SOURCE: CL 19849529 via CL 19849557 via CL 19860977 via CL 19861044
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19869724 by andrew rodham in ue5-main branch]
2022-04-22 15:09:25 -04:00
Mike Zyracki
49541ddc4c Sequencer: Linked Anim Sequences: When duplicating level sequences we also duplicate the linked anim sequence. Also added some BP/Python functions for creating linked anim sequences
#jira UE-149027
#jira UE-149731
#preflight 62607aa6de50cd99bbbab57c
#rb max.chen

[CL 19851796 by Mike Zyracki in ue5-main branch]
2022-04-21 13:12:26 -04:00
christopher waters
99ec480304 Cleaning up dependencies with select heavy-hitter headers in MovieScene and addressing the fallout from that.
MovieScene was targeted as its headers were at the top of profiling ShooterGame builds.
Tested with -disableunity and -nopch. Current timings take ShooterGameEditor rebuild from 480s to 440s

#jira none
#rb josh.adams
#preflight 624c97a63661c8f04a191889

[CL 19634779 by christopher waters in ue5-main branch]
2022-04-05 18:58:45 -04:00
ludovic chabant
ad6692df72 Fix issue where aspect ratio constraint wasn't correctly restored in some cases
#jira none
#rb max.chen
#preflight 624cb6d88d1db441a9159f27

[CL 19632570 by ludovic chabant in ue5-main branch]
2022-04-05 17:53:13 -04:00
ludovic chabant
faaee5caaf Add logging of camera cuts in sequences.
This is to help with troubleshooting cut issues.

#rb none

#ROBOMERGE-AUTHOR: ludovic.chabant
#ROBOMERGE-SOURCE: CL 19584640 via CL 19584656 via CL 19584661
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19584800 by ludovic chabant in ue5-main branch]
2022-04-01 01:42:06 -04:00
louisphilippe seguin
d8d652e81b Explicitely enforce bReplicateUsingRegisteredSubObjectList to false for classes that implemented ReplicateSubObjects but won't be converted to using the new list.
#rb Mattias.Hornlund

#ROBOMERGE-AUTHOR: louisphilippe.seguin
#ROBOMERGE-SOURCE: CL 19384461 via CL 19384483 via CL 19386086 via CL 19397911 via CL 19397999
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19403167 by louisphilippe seguin in ue5-main branch]
2022-03-16 03:29:07 -04:00
rob krajcarski
60e3110349 [Backout] - CL18711725 which unified some aspects of cascade and niagara in sequencer, but broke existing content that was relying on tracks to be auto-activated
#jira UE-143730
#preflight 621fd81e31454c90cc09c125
#lockdown michal.valient
#rb max.chen

#ROBOMERGE-AUTHOR: rob.krajcarski
#ROBOMERGE-SOURCE: CL 19232576 in //UE5/Release-5.0/... via CL 19233025
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19234647 by rob krajcarski in ue5-main branch]
2022-03-02 19:50:13 -05:00
max chen
e8b516997d Sequencer: Console variable track
#jira UE-132512
[FYI] andrew.rodham
#rb max.chen, matt.hoffman
#preflight 61f2d3e6801201ab3861943e

#ROBOMERGE-AUTHOR: max.chen
#ROBOMERGE-SOURCE: CL 18755112 in //UE5/Release-5.0/... via CL 18755119 via CL 18757588
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18758553 by max chen in ue5-main branch]
2022-01-27 14:37:04 -05:00
francis hurteau
5714cca54f Reduced runtime UPackage size from 176b to 144b or 120b when stripping deprecated properties
This should saves around ~1.5 Mb to ~3 Mb at runtime with ~50000 packages

Added a new core define UE_STRIP_DEPRECATED_PROPERTIES that could be used to wrap deprecated properties and strip them to regain memory when a projects becomes compliant. this can be set in the project target file
Deprecated most public properties from UPackage and created accessors for them

#rb PJ.Kack
#jira UE-138957
#preflight 61f17a6f7266f4e79bd62601

#ROBOMERGE-AUTHOR: francis.hurteau
#ROBOMERGE-SOURCE: CL 18738937 in //UE5/Release-5.0/... via CL 18739524 via CL 18741373
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18742135 by francis hurteau in ue5-main branch]
2022-01-26 15:00:04 -05:00
marc audy
6553e6cd0a Remove as much C++ deprecation as possible up to 4.17 (along with a few scattered removals from beyond)
#preflight 61eefc77ba69a4fdb220bf23

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 18712765 in //UE5/Release-5.0/... via CL 18712784 via CL 18713147
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18713191 by marc audy in ue5-main branch]
2022-01-24 15:07:48 -05:00
max chen
b8b1cd16f2 Sequencer: Disable auto activate for all UFXSystemComponents rather than just UParticleSystemComponent so that Niagara components also have auto activate disabled.
#preflight 61eeed83ef289ffc6df129d2
#rb matt.hoffman

#ROBOMERGE-AUTHOR: max.chen
#ROBOMERGE-SOURCE: CL 18711725 in //UE5/Release-5.0/... via CL 18711730 via CL 18711891
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18711928 by max chen in ue5-main branch]
2022-01-24 13:49:58 -05:00
anatole menichetti
21a735b94d Fix Bake Animation Sequence Curve/Transform Export
Enables toggling of exporting morph targets / attribute / material curves separately
Fixes issue when Transforms are not exported: zeroed keys were added instead of ref pose
#jira UE-137045
#preflight 18620216

#ROBOMERGE-AUTHOR: anatole.menichetti
#ROBOMERGE-SOURCE: CL 18621151 in //UE5/Release-5.0/... via CL 18621282 via CL 18621348
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v899-18417669)

[CL 18621396 by anatole menichetti in ue5-main branch]
2022-01-14 14:17:19 -05:00
matt johnson
4963809c62 MovieScene: query movie scenes and sequences for their earliest TimecodeSource instead of using their own property
UMovieScene is a container that may represent multiple pieces of media as
sections, each of which may have their own distinct timecode source. As a result,
the timecode source associated with the UMovieScene itself doesn't correspond to
any particular piece of media, but rather was just intended as the timecode at which
the movie scene was recorded.

These changes update code sites that read the TimecodeSource property directly to
instead query the UMovieScene/UMovieSceneSequence for the earliest timecode source
of any of its sections using GetEarliestTimecodeSource(). The TimecodeSource property
of UMovieScene will ultimately be removed in a subsequent change.

#rb max.chen
#preflight 61dcc052e67256ec41f23837

#ROBOMERGE-AUTHOR: matt.johnson
#ROBOMERGE-SOURCE: CL 18586470 in //UE5/Release-5.0/... via CL 18586491 via CL 18586494
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18586498 by matt johnson in ue5-main branch]
2022-01-12 12:51:54 -05:00
max chen
8bab5aeb6e Sequencer: Redo RemoveInvalidBindings by calling it in PostInitProperties instead of PostLoad since the movie scene might not have been initialized yet. This was causing some automation tests to fail.
This came from another project where adding a binding, deleting it, saving and restarting would not remove the binding from the movie scene.

#rb andrew.rodham
#preflight 61d49bda1f62d3ad4d50cc14
#jira UE-136694
#jira UE-138233

#ROBOMERGE-AUTHOR: max.chen
#ROBOMERGE-SOURCE: CL 18512123 in //UE5/Release-5.0/... via CL 18512148
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18512185 by max chen in ue5-release-engine-test branch]
2022-01-04 15:27:28 -05:00