mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-25 22:23:42 +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
|
||||
spine-godot/example/.godot
|
||||
spine-godot/example-v4/.godot
|
||||
spine-cocos2dx/example/build-macos
|
||||
|
||||
@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
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);
|
||||
|
||||
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