diff options
author | ishbosamiya <ishbosamiya@gmail.com> | 2021-08-19 15:02:58 +0300 |
---|---|---|
committer | ishbosamiya <ishbosamiya@gmail.com> | 2021-08-19 15:02:58 +0300 |
commit | bf0f1184192f8f18dc259a732d3186660558a8b0 (patch) | |
tree | a9b59c0f5f9f927510ad4f2f6414d7cb6460ef83 /source | |
parent | e68cf37413bb29e6238bd4f8a5cad19dc18821b9 (diff) |
adaptive_cloth: ClothNodeData: interp flags correctly
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/cloth_remesh.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/cloth_remesh.cc b/source/blender/blenkernel/intern/cloth_remesh.cc index e76b51629e3..d1aeec382a8 100644 --- a/source/blender/blenkernel/intern/cloth_remesh.cc +++ b/source/blender/blenkernel/intern/cloth_remesh.cc @@ -136,8 +136,10 @@ class ClothNodeData { } ClothVertex cn; - /* TODO(ish): figure out how to handle the flags */ - /* cn.flags; */ + /* CLOTH_VERT_FLAG_PINNED should not be propagated so that the + * artist has the choice of pinning only verts that they want */ + cn.flags |= (this->cloth_node_data.flags | other.cloth_node_data.flags) & + (CLOTH_VERT_FLAG_NOSELFCOLL | CLOTH_VERT_FLAG_NOOBJCOLL); interp_v3_v3v3(cn.v, this->cloth_node_data.v, other.cloth_node_data.v, 0.5); interp_v3_v3v3(cn.xconst, this->cloth_node_data.xconst, other.cloth_node_data.xconst, 0.5); interp_v3_v3v3(cn.x, this->cloth_node_data.x, other.cloth_node_data.x, 0.5); |