From bff7c0759a6dae6c2f785beb12ea276812e7677a Mon Sep 17 00:00:00 2001 From: FishOrBear Date: Thu, 1 Jul 2021 14:28:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E9=94=99=E8=AF=AF=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Source/RuntimeGeometryUtils/Private/DynamicSMCActor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Plugins/RuntimeGeometryUtils/Source/RuntimeGeometryUtils/Private/DynamicSMCActor.cpp b/Plugins/RuntimeGeometryUtils/Source/RuntimeGeometryUtils/Private/DynamicSMCActor.cpp index 675929d..79d8f53 100644 --- a/Plugins/RuntimeGeometryUtils/Source/RuntimeGeometryUtils/Private/DynamicSMCActor.cpp +++ b/Plugins/RuntimeGeometryUtils/Source/RuntimeGeometryUtils/Private/DynamicSMCActor.cpp @@ -48,7 +48,9 @@ void ADynamicSMCActor::UpdateSMCMesh() StaticMesh = NewObject(); MeshComponent->SetStaticMesh(StaticMesh); // add one material slot - StaticMesh->GetStaticMaterials().Add(FStaticMaterial()); + FStaticMaterial StaticMaterial; + StaticMaterial.UVChannelData = FMeshUVChannelInfo(1.0f); + StaticMesh->GetStaticMaterials().Add(StaticMaterial); } if (MeshComponent)