Experimental Feature: Frame Range Masks for FModifiers
[blender.git] / source / blender / editors / animation / fmodifier_ui.c
index 954928fc48609b4c327427ab482125ee7d9b0282..3018fa697b841769ed9bca89a7bc9f8363b9fc9c 100644 (file)
@@ -694,6 +694,24 @@ void ANIM_uiTemplate_fmodifier_draw (uiLayout *layout, ID *id, ListBase *modifie
                        default: /* unknown type */
                                break;
                }
+               
+               /* one last panel below this: FModifier range */
+               // TODO: experiment with placement of this
+               {
+                       box = uiLayoutBox(layout);
+                       
+                       /* top row: use restricted range */
+                       row= uiLayoutRow(box, 0);
+                       uiItemR(row, &ptr, "use_restricted_range", 0, NULL, ICON_NONE);
+                       
+                       if (fcm->flag & FMODIFIER_FLAG_RANGERESTRICT) {
+                               /* second row: settings */
+                               row = uiLayoutRow(box, 1);
+                               
+                               uiItemR(row, &ptr, "frame_start", 0, "Start", ICON_NONE);
+                               uiItemR(row, &ptr, "frame_end", 0, "End", ICON_NONE);
+                       }
+               }
        }
 }