Explorar o código

Bugfix: SoftBodySharedSettings::Clone wasn't cloning the bend constraints

Jorrit Rouwe hai 1 ano
pai
achega
e64724e907
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Jolt/Physics/SoftBody/SoftBodySharedSettings.cpp

+ 1 - 0
Jolt/Physics/SoftBody/SoftBodySharedSettings.cpp

@@ -416,6 +416,7 @@ Ref<SoftBodySharedSettings> SoftBodySharedSettings::Clone() const
 	clone->mFaces = mFaces;
 	clone->mEdgeConstraints = mEdgeConstraints;
 	clone->mEdgeGroupEndIndices = mEdgeGroupEndIndices;
+	clone->mDihedralBendConstraints = mDihedralBendConstraints;
 	clone->mVolumeConstraints = mVolumeConstraints;
 	clone->mSkinnedConstraints = mSkinnedConstraints;
 	clone->mSkinnedConstraintNormals = mSkinnedConstraintNormals;