diff options
-rw-r--r-- | release/scripts/startup/bl_ui/space_dopesheet.py | 3 | ||||
-rw-r--r-- | source/blender/editors/space_graph/graph_utils.c | 4 |
2 files changed, 5 insertions, 2 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" diff --git a/source/blender/editors/space_graph/graph_utils.c b/source/blender/editors/space_graph/graph_utils.c index 6470fa65c39..d8baa4c643d 100644 --- a/source/blender/editors/space_graph/graph_utils.c +++ b/source/blender/editors/space_graph/graph_utils.c @@ -169,9 +169,9 @@ bool graphop_editable_keyframes_poll(bContext *C) int filter; bool found = false; - /* firstly, check if in Graph Editor */ + /* firstly, check if in Graph Editor or Dopesheet */ /* TODO: also check for region? */ - if ((area == NULL) || (area->spacetype != SPACE_GRAPH)) { + if (area == NULL || !ELEM(area->spacetype, SPACE_GRAPH, SPACE_ACTION)) { return found; } |