mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Fix formatting.
This commit is contained in:
parent
d5cd7f67b1
commit
13803ce644
@ -135,7 +135,6 @@ void USpineSkeletonRendererComponent::UpdateMaterial(UTexture2D *Texture, UMater
|
||||
material->SetTextureParameterValue(TextureParameterName, Texture);
|
||||
CurrentInstance = material;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void USpineSkeletonRendererComponent::Flush(int &Idx, TArray<FVector> &Vertices, TArray<int32> &Indices, TArray<FVector> &Normals, TArray<FVector2D> &Uvs, TArray<FColor> &Colors, UMaterialInstanceDynamic *Material) {
|
||||
@ -263,10 +262,10 @@ void USpineSkeletonRendererComponent::UpdateMesh(USpineSkeletonComponent *compon
|
||||
// if the user switches the atlas data while not having switched
|
||||
// to the correct skeleton data yet, we won't find any regions.
|
||||
// ignore regions for which we can't find a material
|
||||
UMaterialInstanceDynamic* material = nullptr;
|
||||
UMaterialInstanceDynamic *material = nullptr;
|
||||
int foundPageIndex = -1;
|
||||
for (int pageIndex = 0; i < component->Atlas->atlasPages.Num(); pageIndex++) {
|
||||
AtlasPage* page = component->Atlas->GetAtlas()->getPages()[pageIndex];
|
||||
AtlasPage *page = component->Atlas->GetAtlas()->getPages()[pageIndex];
|
||||
if (attachmentAtlasRegion->page == page) {
|
||||
foundPageIndex = pageIndex;
|
||||
break;
|
||||
@ -321,7 +320,7 @@ void USpineSkeletonRendererComponent::UpdateMesh(USpineSkeletonComponent *compon
|
||||
uint8 b = static_cast<uint8>(Skeleton->getColor().b * slot->getColor().b * attachmentColor.b * 255);
|
||||
uint8 a = static_cast<uint8>(Skeleton->getColor().a * slot->getColor().a * attachmentColor.a * 255);
|
||||
|
||||
float* verticesPtr = attachmentVertices->buffer();
|
||||
float *verticesPtr = attachmentVertices->buffer();
|
||||
for (int j = 0; j < numVertices << 1; j += 2) {
|
||||
colors.Add(FColor(r, g, b, a));
|
||||
vertices.Add(FVector(verticesPtr[j], depthOffset, verticesPtr[j + 1]));
|
||||
|
||||
@ -331,7 +331,7 @@ bool USpineWidget::HasBone(const FString BoneName) {
|
||||
return false;
|
||||
}
|
||||
|
||||
FTransform USpineWidget::GetBoneTransform(const FString& BoneName) {
|
||||
FTransform USpineWidget::GetBoneTransform(const FString &BoneName) {
|
||||
CheckState();
|
||||
if (skeleton) {
|
||||
Bone *bone = skeleton->findBone(TCHAR_TO_UTF8(*BoneName));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user