DemoRecording:

* Fix CanSkipUpdate when demorecording is enabled alongside an Iris netdriver
* PushModel is not enabled to generic NetDrivers when Iris is enabled in another net driver.

#rb Ryan.Gerleve

[CL 28508409 by louisphilippe seguin in ue5-main branch]
This commit is contained in:
louisphilippe seguin
2023-10-05 14:17:17 -04:00
parent 9c9622e5bd
commit 3210fa2abb
3 changed files with 10 additions and 0 deletions

View File

@@ -1754,6 +1754,9 @@ bool FObjectReplicator::CanSkipUpdate(FReplicationFlags RepFlags)
bool bCanSkip = true;
// Is the pushmodel handle properly assigned.
bCanSkip = bCanSkip && RepChangelistState.HasValidPushModelHandle();
// Have the RepFlags changed ?
bCanSkip = bCanSkip && SendingRepState.RepFlags.Value == RepFlags.Value;

View File

@@ -1182,6 +1182,11 @@ bool FRepChangelistState::HasAnyDirtyProperties() const
{
return UEPushModelPrivate::DoesHaveDirtyPropertiesOrRecentlyCollectedGarbage(PushModelObjectHandle);
}
bool FRepChangelistState::HasValidPushModelHandle() const
{
return PushModelObjectHandle.IsValid();
}
#endif
void FRepChangelistState::CountBytes(FArchive& Ar) const

View File

@@ -422,6 +422,8 @@ public:
bool HasAnyDirtyProperties() const;
bool HasValidPushModelHandle() const;
private:
const UEPushModelPrivate::FPushModelPerNetDriverHandle PushModelObjectHandle;
#endif