diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-01-08 00:25:33 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-01-09 14:16:58 +0300 |
commit | 2f16098d208058dce7701d6e49ed9052445553f5 (patch) | |
tree | 781ff394a933cd75dd65cba5505eff466c798b4b /release/scripts/startup | |
parent | 95847f6ac7ce074501d0f7f2b874ef4036601dc4 (diff) |
Gooseberry animation request: Paste flipped pose in action
and graph editor.
This was a tricky commit that was not so straightforward to make work.
The information for bones is not easy to come by in the animation curves,
however we do have some string manipulation tricks to make it happen.
Testing in gooseberry worked for the rigs there, commiting to master now
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/space_dopesheet.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_graph.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py index 0458ffe3377..f901d9d9262 100644 --- a/release/scripts/startup/bl_ui/space_dopesheet.py +++ b/release/scripts/startup/bl_ui/space_dopesheet.py @@ -131,6 +131,8 @@ class DOPESHEET_HT_header(Header): row = layout.row(align=True) row.operator("action.copy", text="", icon='COPYDOWN') row.operator("action.paste", text="", icon='PASTEDOWN') + row.operator("action.paste", text="", icon='PASTEFLIPDOWN').flipped = True + class DOPESHEET_MT_editor_menus(Menu): diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py index 5861bc0dc95..6b784033bfb 100644 --- a/release/scripts/startup/bl_ui/space_graph.py +++ b/release/scripts/startup/bl_ui/space_graph.py @@ -52,6 +52,7 @@ class GRAPH_HT_header(Header): row = layout.row(align=True) row.operator("graph.copy", text="", icon='COPYDOWN') row.operator("graph.paste", text="", icon='PASTEDOWN') + row.operator("graph.paste", text="", icon='PASTEFLIPDOWN').flipped = True row = layout.row(align=True) if st.has_ghost_curves: |