From efec6e766cf64bcde79bd09cdd274f2c1750f200 Mon Sep 17 00:00:00 2001 From: dyanikoglu Date: Tue, 13 Dec 2022 13:52:30 +0300 Subject: [PATCH] Fix deprecated access for skeletal mesh asset --- Source/ALSV4_CPP/Private/Components/ALSDebugComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ALSV4_CPP/Private/Components/ALSDebugComponent.cpp b/Source/ALSV4_CPP/Private/Components/ALSDebugComponent.cpp index a83675bb..921d38d4 100644 --- a/Source/ALSV4_CPP/Private/Components/ALSDebugComponent.cpp +++ b/Source/ALSV4_CPP/Private/Components/ALSDebugComponent.cpp @@ -198,7 +198,7 @@ void UALSDebugComponent::ToggleDebugMesh() } else { - DefaultSkeletalMesh = OwnerCharacter->GetMesh()->SkeletalMesh; + DefaultSkeletalMesh = OwnerCharacter->GetMesh()->GetSkeletalMeshAsset(); OwnerCharacter->SetVisibleMesh(DebugSkeletalMesh); } bDebugMeshVisible = !bDebugMeshVisible;