Page MenuHome

Console warning when trying to access the subtype of some properties
Closed, ResolvedPublicBUG

Description

Blender 2.90.1

When I try to access the subtype of some properties a warning pops up in the console.

running the following code :

import bpy
bpy.types.PoseBone.bl_rna.properties['rotation_axis_angle'].subtype

makes this warning appear in the console:

(bpy.rna): /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/source/blender/python/intern/bpy_rna.c:1473 pyrna_enum_to_py: current value '28' matches no enum in 'FloatProperty', 'rotation_axis_angle', 'subtype'

some other warnings I've found when trying to access other properties' subtypes:

WARN (bpy.rna): C:\b\buildbot-worker-windows\windows_290\blender.git\source\blender\python\intern\bpy_rna.c:1479 pyrna_enum_to_py: current value '65536' matches no enum in 'FloatProperty', 'extrude', 'subtype'
WARN (bpy.rna): C:\b\buildbot-worker-windows\windows_290\blender.git\source\blender\python\intern\bpy_rna.c:1479 pyrna_enum_to_py: current value '65536' matches no enum in 'FloatProperty', 'offset', 'subtype'
WARN (bpy.rna): C:\b\buildbot-worker-windows\windows_290\blender.git\source\blender\python\intern\bpy_rna.c:1479 pyrna_enum_to_py: current value '65565' matches no enum in 'FloatProperty', 'dimensions', 'subtype'

I don't know if this should be considered a bug, but I've noticed it for quite some time now and I figured it could be worth asking about it.
I tend to access these properties quite frequently in my addon and the console gets flooded with these warnings very quickly.