Particle editmode: add mouse independent "Select Linked" operator

The current "Select Linked" operator works based on mouse position and
makes no sense to call from the menus and was removed in rBdd9dfadaac9b.

This patch adds an operator independent from mouse position that just
selects all keys to a corresponding point (and adds back menu entries,
adds keymap entry).

The original operator is renamed to 'select_linked_pick' internally
(this is now more in line to how "Select Linked" works for meshes,
curves etc)

Differential Revision: https://developer.blender.org/D6823
This commit is contained in:
2020-02-12 17:08:35 +01:00
parent d9e4f5a7e8
commit 5ca7c85e10
6 changed files with 53 additions and 11 deletions

View File

@@ -1443,6 +1443,10 @@ class VIEW3D_MT_select_particle(Menu):
layout.separator()
layout.operator("particle.select_linked", text="Select Linked")
layout.separator()
layout.operator("particle.select_more")
layout.operator("particle.select_less")
@@ -3120,6 +3124,9 @@ class VIEW3D_MT_particle_context_menu(Menu):
layout.operator("particle.select_more")
layout.operator("particle.select_less")
layout.separator()
layout.operator("particle.select_linked", text="Select Linked")
class VIEW3D_MT_particle_showhide(ShowHideMenu, Menu):
_operator_name = "particle"