diff --git a/Content/DynamicLineMaterial.uasset b/Content/DynamicLineMaterial.uasset index caea7d8737eb5a2668617a54dfc47b98154aecdf..edbb6625eeb1a6e53b2cc00d07ffb9c7a1ca2aa3 100644 Binary files a/Content/DynamicLineMaterial.uasset and b/Content/DynamicLineMaterial.uasset differ diff --git a/Source/InstancedMeshLineRendering/Private/GPUInstancedLineComponent.cpp b/Source/InstancedMeshLineRendering/Private/GPUInstancedLineComponent.cpp index a47299a66f0b3f94c7bd7137e2a87d5ba8a8c085..68cd46982506e6f4cc8ad1ecb10263f5bb1d92f3 100644 --- a/Source/InstancedMeshLineRendering/Private/GPUInstancedLineComponent.cpp +++ b/Source/InstancedMeshLineRendering/Private/GPUInstancedLineComponent.cpp @@ -417,12 +417,6 @@ void UGPUInstancedLineComponent::PostEditChangeProperty(FPropertyChangedEvent& P Super::PostEditChangeProperty(PropertyChangedEvent); } -// This is hacky - reset the transform to 0,0,0 every time the component is moved to not mess up the editor gizmos -void UGPUInstancedLineComponent::OnUpdateTransform(EUpdateTransformFlags UpdateTransformFlags, ETeleportType Teleport) -{ - SetWorldTransform(FTransform::Identity); -} - void UGPUInstancedLineComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) { diff --git a/Source/InstancedMeshLineRendering/Public/GPUInstancedLineComponent.h b/Source/InstancedMeshLineRendering/Public/GPUInstancedLineComponent.h index 974f51fa177c40efe7611f6f87874651396db75f..9bcf844f09b2390429be44a5e09b0f7275ee3dbd 100644 --- a/Source/InstancedMeshLineRendering/Public/GPUInstancedLineComponent.h +++ b/Source/InstancedMeshLineRendering/Public/GPUInstancedLineComponent.h @@ -103,8 +103,6 @@ public: #if WITH_EDITOR virtual void PostEditChangeChainProperty(FPropertyChangedChainEvent& PropertyChangedEvent) override; virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override; // need this for the widget as for some godforsaken reason the Chain event doesn't fire... - // This is ABSURDLY hacky - virtual void OnUpdateTransform(EUpdateTransformFlags UpdateTransformFlags, ETeleportType Teleport = ETeleportType::None) override; virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override; #endif