Skip to content

Commit eaf981c

Browse files
committed
Resolved merge conflict
2 parents 971ba9c + cb69d7d commit eaf981c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/PrefabricatorRuntime/Private/Prefab/PrefabTools.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -566,10 +566,10 @@ void FPrefabTools::LoadStateFromPrefabAsset(APrefabActor* PrefabActor, const FPr
566566
// Set the transform
567567
FTransform WorldTransform = ActorItemData.RelativeTransform * PrefabActor->GetTransform();
568568
if (ChildActor->GetRootComponent()) {
569-
EComponentMobility::Type OldChildMobility = EComponentMobility::Movable;
570-
if (ChildActor->GetRootComponent()) {
571-
OldChildMobility = ChildActor->GetRootComponent()->Mobility;
572-
}
569+
EComponentMobility::Type OldChildMobility = EComponentMobility::Movable;
570+
if (ChildActor->GetRootComponent()) {
571+
OldChildMobility = ChildActor->GetRootComponent()->Mobility;
572+
}
573573
ChildActor->GetRootComponent()->SetMobility(EComponentMobility::Movable);
574574
ChildActor->SetActorTransform(WorldTransform);
575575
ChildActor->GetRootComponent()->SetMobility(OldChildMobility);

0 commit comments

Comments
 (0)