NLA Transform Bugfixes:
[blender.git] / source / blender / src / transform_conversions.c
index 8859194ff9c65552066196ad39d6a5edbb25c70b..9a9a454ef3dbd760132e83ef7fe5eb9df44c0f88 100644 (file)
@@ -2726,9 +2726,10 @@ static void createTransNlaData(TransInfo *t)
                if (base->object->action) {
                        /* exclude if strip is selected too */
                        for (strip=base->object->nlastrips.first; strip; strip=strip->next) {
-                               if (strip->flag & ACTSTRIP_SELECT)
+                               if (strip->flag & ACTSTRIP_SELECT) {
                                        if (strip->act == base->object->action)
                                                break;
+                               }
                        }
                        if (strip==NULL) {
                                cfra = get_action_frame(base->object, CFRA);
@@ -2790,9 +2791,10 @@ static void createTransNlaData(TransInfo *t)
                if (base->object->action) {
                        /* exclude if strip that active action belongs to is selected too */
                        for (strip=base->object->nlastrips.first; strip; strip=strip->next) {
-                               if (strip->flag & ACTSTRIP_SELECT)
+                               if (strip->flag & ACTSTRIP_SELECT) {
                                        if (strip->act == base->object->action)
                                                break;
+                               }
                        }
                        
                        /* can include if no strip found */