Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2018-08-20 07:12:37 +0300
committerJoshua Leung <aligorith@gmail.com>2018-08-20 07:12:37 +0300
commit6f2735b2bf6f2cd532a9a816c39cde17006afe49 (patch)
tree3aa6e9bbc7829ec616d1269cd0e905a0dca81ed8 /release/scripts/startup
parent76ea32d192693ac0d46270dd30c7e50a0bfcea62 (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')
-rw-r--r--release/scripts/startup/bl_ui/properties_animviz.py6
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:")