避免错误调试

This commit is contained in:
FishOrBear 2021-07-01 14:28:38 +08:00
parent cf3b688013
commit bff7c0759a

View File

@ -48,7 +48,9 @@ void ADynamicSMCActor::UpdateSMCMesh()
StaticMesh = NewObject<UStaticMesh>();
MeshComponent->SetStaticMesh(StaticMesh);
// add one material slot
StaticMesh->GetStaticMaterials().Add(FStaticMaterial());
FStaticMaterial StaticMaterial;
StaticMaterial.UVChannelData = FMeshUVChannelInfo(1.0f);
StaticMesh->GetStaticMaterials().Add(StaticMaterial);
}
if (MeshComponent)