From 1baa4bea36ff4ace03a2f86984a3283a43350dd2 Mon Sep 17 00:00:00 2001
From: mmeierkrueger <marius.meier-krueger@rwth-aachen.de>
Date: Sat, 12 Feb 2022 10:25:38 +0100
Subject: [PATCH] made PostEditChangeProperty method exclusive to editor
 launches of the game

---
 .../Private/GPUInstancedLineComponent.cpp                      | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Source/InstancedMeshLineRendering/Private/GPUInstancedLineComponent.cpp b/Source/InstancedMeshLineRendering/Private/GPUInstancedLineComponent.cpp
index 1de2647..821d3e6 100644
--- a/Source/InstancedMeshLineRendering/Private/GPUInstancedLineComponent.cpp
+++ b/Source/InstancedMeshLineRendering/Private/GPUInstancedLineComponent.cpp
@@ -414,6 +414,7 @@ void UGPUInstancedLineComponent::PostEditChangeChainProperty(FPropertyChangedCha
 	Super::PostEditChangeChainProperty(PropertyChangedEvent);
 }
 
+#if WITH_EDITOR
 void UGPUInstancedLineComponent::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
 {
 	Init();
@@ -444,6 +445,8 @@ void UGPUInstancedLineComponent::PostEditChangeProperty(FPropertyChangedEvent& P
 	
 	Super::PostEditChangeProperty(PropertyChangedEvent);
 }
+#endif
+
 
 void UGPUInstancedLineComponent::TickComponent(float DeltaTime, ELevelTick TickType,
 	FActorComponentTickFunction* ThisTickFunction)
-- 
GitLab