L0Lock / convertRotationMode

Blender addon to change the rotation order of an object while preserving the current poses.
GNU General Public License v3.0
9 stars 1 forks source link

bug: `_RestrictContext' object has no attribute 'selected_pose_bones'` since bugfix #13 #14

Closed L0Lock closed 2 years ago

L0Lock commented 2 years ago
Python: Traceback (most recent call last):
  File "C:\AppInstall\Blender\MyScripts\addons\convert_Rotation_Mode.py", line 121, in execute
    listBones = C.selected_pose_bones
AttributeError: '_RestrictContext' object has no attribute 'selected_pose_bones'

Error goes away when removing #13 fix:

 @classmethod
 def poll(cls, context):
     return context.selected_pose_bones

just... why?