Skip to content

Error on "Search and Select" bone when it actually find the bone name it search for (2) #240

Description

@magnative

Seem like fix on #215 doesn't fix the problem.
"Search and Replace" work normally but "Search and Select" will give an error.

Error on 5.1.2 / 2.1.6 Test on factory setting.

Python: Traceback (most recent call last):
  File "C:\Users\Magnative\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\user_default\simple_renaming_panel\operators\search_select.py", line 28, in invoke
    return super().invoke(context, event)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Magnative\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\user_default\simple_renaming_panel\operators\search_select.py", line 14, in invoke
    return self.execute(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Magnative\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\user_default\simple_renaming_panel\operators\search_select.py", line 85, in execute
    bone.bone.select = True
    ^^^^^^^^^
AttributeError: 'PoseBone' object has no attribute 'bone'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions