diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-12 18:13:42 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-13 20:15:29 +0300 |
commit | 23d0361b30da481ffe71142d4efd336dfb1f27f2 (patch) | |
tree | 9f6aed26d86008afbc05300fef4667ec3056c835 /source/blender/blenkernel/BKE_paint.h | |
parent | fe3ca3f6cef9a852ee0596b28341c519c7870d9c (diff) |
Sculpt: Fix creation of repeated constraints in the Cloth Brush
Previously, constraints were added multiple times from different
vertices. This adds a GSet to check that the same constraint is not
being added twice when iterating over the neighbors of two different
vertices.
Reviewed By: zeddb
Differential Revision: https://developer.blender.org/D8007
Diffstat (limited to 'source/blender/blenkernel/BKE_paint.h')
-rw-r--r-- | source/blender/blenkernel/BKE_paint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h index 4d30c5c7fce..144e091d971 100644 --- a/source/blender/blenkernel/BKE_paint.h +++ b/source/blender/blenkernel/BKE_paint.h @@ -24,6 +24,7 @@ * \ingroup bke */ +#include "BLI_ghash.h" #include "BLI_utildefines.h" #include "DNA_object_enums.h" @@ -268,6 +269,7 @@ typedef struct SculptClothLengthConstraint { typedef struct SculptClothSimulation { SculptClothLengthConstraint *length_constraints; int tot_length_constraints; + GSet *created_length_constraints; int capacity_length_constraints; float *length_constraint_tweak; |