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:
authorDemeter Dzadik <Mets>2022-04-29 15:53:14 +0300
committerSybren A. Stüvel <sybren@blender.org>2022-04-29 16:17:27 +0300
commit7fd11d9c7f5b14106e1252289ccbcd8dd55ac087 (patch)
treea28a8256c9056452de51c1b5c8a75edcf97b8309 /release
parent3d877c8a0d06ee539db541c6d410852f94fc618d (diff)
T95386: Add Discontinuity (Euler) filter to Dope Sheet.
Add the Discontinuity (Euler) Filter operator to the Dope Sheet->Key menu, so it's not only available from the Graph Editor->Key menu. On request of @pablico, see T95386. This required changing a poll function which is used by a bunch of other operators, which seemed scary at first, but my thinking is that if an operator can execute in the Graph Editor, then it should also be able to execute in the Dope Sheet. I think the only reason this wouldn't be true is if we were storing animation data in the UI itself, which of course we don't. So I hope this is okay. Reviewed By: sybren Differential Revision: https://developer.blender.org/D14015
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_dopesheet.py3
1 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 8e328e7cf2b..437f20b9473 100644
--- a/release/scripts/startup/bl_ui/space_dopesheet.py
+++ b/release/scripts/startup/bl_ui/space_dopesheet.py
@@ -510,6 +510,9 @@ class DOPESHEET_MT_key(Menu):
layout.operator("action.clean", text="Clean Channels").channels = True
layout.operator("action.sample")
+ layout.separator()
+ layout.operator("graph.euler_filter", text="Discontinuity (Euler) Filter")
+
class DOPESHEET_MT_key_transform(Menu):
bl_label = "Transform"