Why are custom object properties defined by API no longer available in the Objects Custom Properties menu? Is there any way to bring them back?
Video demo: https://imgur.com/Bi3GBFC
Simple code used in demo to show the change:
import bpy
from bpy.props import IntProperty
class ModalOperator(bpy.types.Operator):
"""Custom property test"""
bl_idname = "object.custom_prop_test"
bl_label = "Custom prop test"
def execute(self, context):
context.selected_objects[0].test = 10
return {"FINISHED"}
def menu_func(self, context):
self.layout.operator(ModalOperator.bl_idname, \
text=ModalOperator.bl_label)
def register():
bpy.utils.register_class(ModalOperator)
bpy.types.VIEW3D_MT_object.append(menu_func)
bpy.types.Object.test = bpy.props.IntProperty(name='test prop', default=0 )
def unregister():
bpy.utils.unregister_class(ModalOperator)
bpy.types.VIEW3D_MT_object.remove(menu_func)
del bpy.types.Object.x_offset
if __name__ == "__main__":
register()
```