Skip to content
Browse files

Port to 2.78 - 0.4.1 changes - Separated tooltip for Hide selected an…

…d Hide unselected for Particles in Particle mode

  • Loading branch information...
ReinerBforartists committed Jan 29, 2017
1 parent 05e119b commit 0384ae138864692ff463a16ee19474a79d7126d4
Showing with 23 additions and 1 deletion.
  1. +23 −1 release/scripts/startup/bl_ui/
@@ -2008,6 +2008,28 @@ def draw(self, context):

# ********** Particle menu **********

# Workaround to separate the tooltips for Show Hide for Particles in Particle mode
class VIEW3D_particle_hide_unselected(bpy.types.Operator):
"""Hide Unselected\nHide the unselected Particles""" # blender will use this as a tooltip for menu items and buttons.
bl_idname = "particle.hide_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.particle.hide(unselected = True)
return {'FINISHED'}

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

def draw(self, context):
layout = self.layout

layout.operator("particle.reveal", text="Show Hidden")
layout.operator("particle.hide", text="Hide Selected").unselected = False
layout.operator("particle.hide_unselected", text="Hide Unselected")

class VIEW3D_MT_particle(Menu):
bl_label = "Particle"
@@ -2033,7 +2055,7 @@ def draw(self, context):


class VIEW3D_MT_particle_specials(Menu):

0 comments on commit 0384ae1

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