mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 17:45:23 +00:00
Fix UE 5.2 builds
This commit is contained in:
parent
09ed51c432
commit
2139e9d348
@ -118,7 +118,9 @@ void UStevesPooledActorSystem::DisableActor(AActor* Actor)
|
|||||||
if (auto Prim = Cast<UPrimitiveComponent>(Actor->GetRootComponent()))
|
if (auto Prim = Cast<UPrimitiveComponent>(Actor->GetRootComponent()))
|
||||||
{
|
{
|
||||||
Prim->SetSimulatePhysics(false);
|
Prim->SetSimulatePhysics(false);
|
||||||
|
#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3
|
||||||
Prim->ResetSceneVelocity();
|
Prim->ResetSceneVelocity();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
Actor->SetActorLocation(StorageLocation, false, nullptr, ETeleportType::ResetPhysics);
|
Actor->SetActorLocation(StorageLocation, false, nullptr, ETeleportType::ResetPhysics);
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
#include "StevesSpringArmComponent.h"
|
#include "StevesSpringArmComponent.h"
|
||||||
|
#include "VisualLogger/VisualLogger.h"
|
||||||
#include "StevesUEHelpers.h"
|
#include "StevesUEHelpers.h"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user