mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge branch '4.1-beta' into 4.2-beta
# Conflicts: # .gitignore
This commit is contained in:
commit
934034fce4
1
.gitignore
vendored
1
.gitignore
vendored
@ -173,3 +173,4 @@ spine-godot/spine_godot/*.obj
|
|||||||
*.bc
|
*.bc
|
||||||
spine-godot/example/.godot
|
spine-godot/example/.godot
|
||||||
spine-godot/example-v4/.godot
|
spine-godot/example-v4/.godot
|
||||||
|
spine-cocos2dx/example/build-macos
|
||||||
|
|||||||
@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
|
|||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
|
||||||
|
|||||||
@ -39,7 +39,7 @@ public:
|
|||||||
|
|
||||||
CREATE_FUNC(RaptorExample);
|
CREATE_FUNC(RaptorExample);
|
||||||
|
|
||||||
virtual bool init();
|
virtual bool init();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
spine::SkeletonAnimation *skeletonNode;
|
spine::SkeletonAnimation *skeletonNode;
|
||||||
|
|||||||
@ -161,12 +161,12 @@ 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GetBodySetup()->bGenerateMirroredCollision = GetComponentScale().X < 0 || GetComponentScale().Y < 0 || GetComponentScale().Z < 0;
|
GetBodySetup()->bGenerateMirroredCollision = GetComponentScale().X < 0 || GetComponentScale().Y < 0 || GetComponentScale().Z < 0;
|
||||||
CreateMeshSection(Idx, Vertices, Indices, Normals, Uvs, Colors, TArray<FProcMeshTangent>(), bShouldCreateCollision);
|
CreateMeshSection(Idx, Vertices, Indices, Normals, Uvs, Colors, TArray<FProcMeshTangent>(), bShouldCreateCollision);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user