Formatting pass.

This commit is contained in:
Mario Zechner 2022-05-31 12:26:05 +02:00
parent 9e7f2df8e1
commit 771c526915
4 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -164,3 +164,4 @@ spine-cocos2dx/example-v4/build-macos
spine-cocos2dx/example/build-ios
spine-cocos2dx/example/proj.android/app/.cxx
spine-cocos2dx/example/build-win
spine-cocos2dx/example/build-macos

View File

@ -953,8 +953,8 @@ spSkeletonData *spSkeletonJson_readSkeletonDataFile(spSkeletonJson *self, const
static int string_starts_with(const char *str, const char *needle) {
int lenStr, lenNeedle, i;
if (!str) return 0;
lenStr = (int)strlen(str);
lenNeedle = (int)strlen(needle);
lenStr = (int) strlen(str);
lenNeedle = (int) strlen(needle);
if (lenStr < lenNeedle) return 0;
for (i = 0; i < lenNeedle; i++) {
if (str[i] != needle[i]) return 0;

View File

@ -39,7 +39,7 @@ public:
CREATE_FUNC(RaptorExample);
virtual bool init();
virtual bool init();
private:
spine::SkeletonAnimation *skeletonNode;

View File

@ -161,12 +161,12 @@ void USpineSkeletonRendererComponent::Flush(int &Idx, TArray<FVector> &Vertices,
bool bShouldCreateCollision = false;
if (bCreateCollision) {
UWorld* world = GetWorld();
UWorld *world = GetWorld();
if (world && world->IsGameWorld()) {
bShouldCreateCollision = true;
}
}
GetBodySetup()->bGenerateMirroredCollision = GetComponentScale().X < 0 || GetComponentScale().Y < 0 || GetComponentScale().Z < 0;
CreateMeshSection(Idx, Vertices, Indices, Normals, Uvs, Colors, TArray<FProcMeshTangent>(), bShouldCreateCollision);