From 786cb5ed8cca82b1ba556eb96343970177b6ac86 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Thu, 18 May 2023 21:11:44 +0200 Subject: [PATCH] set the default attachment scale rule to snap to target --- .../Private/SenseGlove/Components/SGGrabComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SenseGlove/Private/SenseGlove/Components/SGGrabComponent.cpp b/Source/SenseGlove/Private/SenseGlove/Components/SGGrabComponent.cpp index 1508a0a8..0ab47a9c 100644 --- a/Source/SenseGlove/Private/SenseGlove/Components/SGGrabComponent.cpp +++ b/Source/SenseGlove/Private/SenseGlove/Components/SGGrabComponent.cpp @@ -101,7 +101,7 @@ USGGrabComponent::USGGrabComponent(const FObjectInitializer& ObjectInitializer) { AttachmentLocationRule = EAttachmentRule::SnapToTarget; AttachmentRotationRule = EAttachmentRule::SnapToTarget; - AttachmentScaleRule = EAttachmentRule::SnapToTarget; + AttachmentScaleRule = EAttachmentRule::KeepWorld; bAttachmentWeldSimulatedBodies = true; AttachmentSocketName = NAME_None;