#include "BKE_armature.h"
#include "BKE_DerivedMesh.h"
+#include "BKE_cloth.h"
#include "BKE_customdata.h"
#include "BKE_depsgraph.h"
#include "BKE_deform.h"
/* this flag is event for softbody to refresh weightpaint values */
if(ob->soft) ob->softflag |= OB_SB_REDO;
+ // same goes for cloth
+ if(modifiers_isClothEnabled(ob)) {
+ cloth_free_modifier(modifiers_isClothEnabled(ob));
+ }
+
BIF_undo_push("Weight Paint");
allqueue(REDRAWVIEW3D, 0);
}