From 7fd11d9c7f5b14106e1252289ccbcd8dd55ac087 Mon Sep 17 00:00:00 2001 From: Demeter Dzadik Date: Fri, 29 Apr 2022 14:53:14 +0200 Subject: 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 --- release/scripts/startup/bl_ui/space_dopesheet.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'release/scripts') 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" -- cgit v1.2.3