ソースを参照

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

Jorrit Rouwe 1 年間 前
コミット
e64724e907
1 ファイル変更1 行追加0 行削除
  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;