From a2b35c0cf94e32bda59ab09dfcc974d1f4f71ae8 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Tue, 23 Mar 2021 22:05:02 +0300 Subject: [PATCH] remove unused code --- ServerExt/Classes/ExtCharacterInfo.uc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ServerExt/Classes/ExtCharacterInfo.uc b/ServerExt/Classes/ExtCharacterInfo.uc index c0b4d94..54d6c0c 100644 --- a/ServerExt/Classes/ExtCharacterInfo.uc +++ b/ServerExt/Classes/ExtCharacterInfo.uc @@ -573,7 +573,6 @@ static final function DetachConflictingAttachments(KFCharacterInfo_Human C, int /** Assign an arm mesh and material to this pawn */ static final function SetFirstPersonArmsFromArch(KFCharacterInfo_Human C, KFPawn KFP, optional KFPlayerReplicationInfo KFPRI) { - local MaterialInstanceConstant M; local ExtPlayerReplicationInfo EPRI; local bool bCustom; local int AttachmentIdx, CosmeticMeshIdx; @@ -607,12 +606,6 @@ static final function SetFirstPersonArmsFromArch(KFCharacterInfo_Human C, KFPawn KFP, KFPRI, true); } } - - // Hack fix for a material bug on KF2 - if (bCustom && KFP.ArmsMesh.SkeletalMesh!=None && KFP.ArmsMesh.GetMaterial(0)!=None) - { - M = KFP.ArmsMesh.CreateAndSetMaterialInstanceConstant(0); - } } static function int GetAttachmentSlotIndex(