svn merge -r 13357:13382 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / src / transform_conversions.c
index 12419c94c0f2f2ae65f8e8e3805bda6f4ae289c2..e69fabdd926db836560cb327c6f609724e14ba15 100644 (file)
@@ -77,6 +77,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"
@@ -3395,13 +3396,18 @@ 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((ob == OBACT) && modifiers_isClothEnabled(ob)) {
+                               ClothModifierData *clmd = (ClothModifierData *)modifiers_findByType(ob, eModifierType_Cloth);
+                               clmd->sim_parms->flags |= CLOTH_SIMSETTINGS_FLAG_RESET;
+                       }
                        
                        /* Set autokey if necessary */
                        if ((!cancelled) && (t->mode != TFM_DUMMY) && (base->flag & SELECT)) {