Anim: bone collections, split ARMATURE_OT_collection_assign in two

Split the `armature.collection_assign` operator in two. Before, the
operator could do two things: assign selected bones to the active/named
bone collection, or create a new bone collection with the given name.

This is now split up, where `armature.collection_assign` only assigns to
existing bone collections, and `armature.collection_create_and_assign`
always creates a new bone collection.

This makes the purpose of each operator clearer & more predictable.
This commit is contained in:
Sybren A. Stüvel
2023-12-18 12:53:57 +01:00
parent e87b67398c
commit b70ebf96e7
4 changed files with 101 additions and 29 deletions

View File

@@ -4117,7 +4117,7 @@ class VIEW3D_MT_bone_collections(Menu):
layout.separator()
props = layout.operator("armature.collection_assign",
props = layout.operator("armature.collection_create_and_assign",
text="Assign to New Collection")
props.name = "New Collection"