Page MenuHome

select pattern fails in some type/mode combinations
Closed, ResolvedPublic

Description

Blender Version
Broken: 2.80 4d795cee493
Worked: 2.79

Short description of error
Select pattern fails with some object types and modes.

Exact steps for others to reproduce the error
An armaure in pose mode fails with 'Bone' object has no attribute 'select_set'

Other objects such as mesh, curve, text, gpencil in edit/sculpt/etc modes fail with bpy.ops.object.select_all.poll() failed context is incorrect

Event Timeline

Sebastian Parborg (zeddb) triaged this task as Needs Information from User priority.

Could you go through the exact steps to reproduce this error?

IE:

  1. Open default cube scene
  2. Go into edit more
  3. Seletect....

Or provide a minimal blend file that I can just open and see the problem.

While not in object mode do an operator search for Select Pattern - just patt will find it. Any blend file will do.

Actually it looks like it fails with extend disabled, with extend enabled is mostly fine.

For an armature edit mode does work but pose mode always fails. Pose bones don't appear to implement select_set() or select_get() this part would be related to rB345eb6f7cc8157

Add any object and change mode to edit/scult/... then do an operator search and disable extend, enter and exit the entry field to get the error again.

I expect select_pattern.poll should be stricter so that it isn't found in unsuitable object/mode combinations.

Sebastian Parborg (zeddb) raised the priority of this task from Needs Information from User to Confirmed, Medium.

Fixed in two parts. The original issue was fixed on rB6fdfa556678e.
The select_all issue was fixed on rBc862c14339e4 (this should not be available from the cases reported here).