Explorar o código

Formatting pass.

Mario Zechner %!s(int64=3) %!d(string=hai) anos
pai
achega
771c526915

+ 1 - 0
.gitignore

@@ -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

+ 2 - 2
spine-c/spine-c/src/spine/SkeletonJson.c

@@ -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;

+ 1 - 1
spine-cocos2dx/example/Classes/RaptorExample.h

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

+ 2 - 2
spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonRendererComponent.cpp

@@ -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);