diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-08-20 07:12:37 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-08-20 07:12:37 +0300 |
commit | 6f2735b2bf6f2cd532a9a816c39cde17006afe49 (patch) | |
tree | 3aa6e9bbc7829ec616d1269cd0e905a0dca81ed8 /release/scripts/startup/bl_ui/properties_animviz.py | |
parent | 76ea32d192693ac0d46270dd30c7e50a0bfcea62 (diff) |
Motion Paths UI: "Update from Scene Range" operator
Make it easier to update the frame range for motion paths from
the Scene's current frame range (render or preview range)
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_animviz.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_animviz.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_animviz.py b/release/scripts/startup/bl_ui/properties_animviz.py index 4033d5c2448..7ba503bffd2 100644 --- a/release/scripts/startup/bl_ui/properties_animviz.py +++ b/release/scripts/startup/bl_ui/properties_animviz.py @@ -52,6 +52,12 @@ class MotionPathButtonsPanel: sub.prop(mps, "frame_step", text="Step") + if mps.type == 'RANGE': + if bones: + sub.operator("pose.paths_range_update") + else: + sub.operator("object.paths_range_update") + col = layout.column(align=True) if bones: col.label(text="Cache for Bone:") |