Fix: Select Pattern Operator for pose bones

Due to the change of the selection state in pose mode
to the pose bone, this operator was broken.

Pull Request: https://projects.blender.org/blender/blender/pulls/148067
This commit is contained in:
Christoph Lendenfeld
2025-10-14 17:24:37 +02:00
committed by Christoph Lendenfeld
parent 0be7678702
commit 67d5f8ea60

View File

@@ -55,7 +55,7 @@ class SelectPattern(Operator):
is_pbone = False
obj = context.object
if obj and obj.mode == 'POSE':
items = obj.data.bones
items = obj.pose.bones
if not self.extend:
bpy.ops.pose.select_all(action='DESELECT')
is_pbone = True