Merge with blender svn -> svn merge -r 12064:12150 https://svn.blender.org/svnroot...
[blender.git] / source / blender / src / transform_conversions.c
index 058461806ce9bac4ddb70a9edcf4910217070591..39c63380c1e1b7b5a2347ada777f9cd15eed317b 100644 (file)
@@ -76,6 +76,7 @@
 #include "BKE_action.h"
 #include "BKE_armature.h"
 #include "BKE_blender.h"
+#include "BKE_cloth.h"
 #include "BKE_curve.h"
 #include "BKE_constraint.h"
 #include "BKE_depsgraph.h"
@@ -2810,13 +2811,15 @@ void special_aftertrans_update(TransInfo *t)
        }
        else {
                base= FIRSTBASE;
-               while(base) {   
-                       
+               while(base) {                                           
                        if(base->flag & BA_DO_IPO) redrawipo= 1;
                        
                        ob= base->object;
 
                        if(modifiers_isSoftbodyEnabled(ob)) ob->softflag |= OB_SB_REDO;
+                       else if(modifiers_isClothEnabled(ob)) {
+                               cloth_free_modifier(modifiers_isClothEnabled(ob));
+                       }
                        
                        /* Set autokey if necessary */
                        if ((!cancelled) && (base->flag & SELECT)){