Skip to content
Browse files

Port to 2.78 - 0.4.1 changes - Separated tooltip for Metaball Hide se…

…lected and Hide unselected

  • Loading branch information...
ReinerBforartists committed Jan 29, 2017
1 parent 439d6dc commit 8d952c3db1216a8b4a73d16c6ec70980ad38af34
Showing with 13 additions and 1 deletion.
  1. +13 −1 release/scripts/startup/bl_ui/
@@ -2962,6 +2962,18 @@ def draw(self, context):"VIEW3D_MT_edit_meta_showhide")

# Workaround to separate the tooltips for Show Hide for Curve in Edit Mode
class VIEW3D_MT_edit_meta_showhide_unselected(bpy.types.Operator):
"""Hide Unselected\nHide unselected metaelement(s)""" # blender will use this as a tooltip for menu items and buttons.
bl_idname = "mball.hide_metaelems_unselected" # unique identifier for buttons and menu items to reference.
bl_label = "Hide Unselected" # 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.mball.hide_metaelems(unselected = True)
return {'FINISHED'}

class VIEW3D_MT_edit_meta_showhide(Menu):
bl_label = "Show/Hide"

@@ -2970,7 +2982,7 @@ def draw(self, context):

layout.operator("mball.reveal_metaelems", text="Show Hidden")
layout.operator("mball.hide_metaelems", text="Hide Selected").unselected = False
layout.operator("mball.hide_metaelems", text="Hide Unselected").unselected = True
layout.operator("mball.hide_metaelems_unselected", text="Hide Unselected")

class VIEW3D_MT_edit_lattice(Menu):

0 comments on commit 8d952c3

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