mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 02:58:44 +08:00
Formatting pass.
This commit is contained in:
parent
9e7f2df8e1
commit
771c526915
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -39,7 +39,7 @@ public:
|
||||
|
||||
CREATE_FUNC(RaptorExample);
|
||||
|
||||
virtual bool init();
|
||||
virtual bool init();
|
||||
|
||||
private:
|
||||
spine::SkeletonAnimation *skeletonNode;
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user