mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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/build-ios
|
||||||
spine-cocos2dx/example/proj.android/app/.cxx
|
spine-cocos2dx/example/proj.android/app/.cxx
|
||||||
spine-cocos2dx/example/build-win
|
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) {
|
static int string_starts_with(const char *str, const char *needle) {
|
||||||
int lenStr, lenNeedle, i;
|
int lenStr, lenNeedle, i;
|
||||||
if (!str) return 0;
|
if (!str) return 0;
|
||||||
lenStr = (int)strlen(str);
|
lenStr = (int) strlen(str);
|
||||||
lenNeedle = (int)strlen(needle);
|
lenNeedle = (int) strlen(needle);
|
||||||
if (lenStr < lenNeedle) return 0;
|
if (lenStr < lenNeedle) return 0;
|
||||||
for (i = 0; i < lenNeedle; i++) {
|
for (i = 0; i < lenNeedle; i++) {
|
||||||
if (str[i] != needle[i]) return 0;
|
if (str[i] != needle[i]) return 0;
|
||||||
|
|||||||
@ -161,7 +161,7 @@ void USpineSkeletonRendererComponent::Flush(int &Idx, TArray<FVector> &Vertices,
|
|||||||
|
|
||||||
bool bShouldCreateCollision = false;
|
bool bShouldCreateCollision = false;
|
||||||
if (bCreateCollision) {
|
if (bCreateCollision) {
|
||||||
UWorld* world = GetWorld();
|
UWorld *world = GetWorld();
|
||||||
if (world && world->IsGameWorld()) {
|
if (world && world->IsGameWorld()) {
|
||||||
bShouldCreateCollision = true;
|
bShouldCreateCollision = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user