Skip to content
Permalink
Browse files

Port to 2.78 - 0.4.1 changes - Console - Dope Sheet - Separated toolt…

  • Loading branch information...
ReinerBforartists committed Jan 29, 2017
1 parent 87d6176 commit 21f8cc43353acb72636f75c345dc78fb15724b9e
Showing with 12 additions and 1 deletion.
  1. +12 −1 release/scripts/startup/bl_ui/space_dopesheet.py
@@ -340,6 +340,17 @@ def draw(self, context):
layout.separator()
layout.operator("anim.channels_fcurves_enable")

# Workaround to separate the tooltips
class DOPESHEET_MT_key_clean_channels(bpy.types.Operator):
"""Clean Channels\nSimplify F-Curves by removing closely spaced keyframes in selected channels""" # blender will use this as a tooltip for menu items and buttons.
bl_idname = "action.clean_channels" # unique identifier for buttons and menu items to reference.
bl_label = "Clean Channels" # display name in the interface.
bl_options = {'REGISTER', 'UNDO'} # enable undo for the operator.

def execute(self, context): # execute() is called by blender when running the operator.
bpy.ops.action.clean(channels = True)
return {'FINISHED'}


class DOPESHEET_MT_key(Menu):
bl_label = "Key"
@@ -369,7 +380,7 @@ def draw(self, context):

layout.separator()
layout.operator("action.clean").channels = False
layout.operator("action.clean", text="Clean Channels").channels = True
layout.operator("action.clean_channels", text="Clean Channels") # bfa - separated tooltips
layout.operator("action.sample")

layout.separator()

0 comments on commit 21f8cc4

Please sign in to comment.
You can’t perform that action at this time.