I am trying to make a default value for an EnumProperty whose items are generated by an items function like below. Defining a default value in such situation makes the ui element of that property dissappear, clearly Blender does not like it.
Normally the line below is created and populated as a regular enum prop. And it quite functional in my add-on.
category_id = EnumProperty( name="id",items=items_func, update=update_func)
This is the version that is not working naturally.
category_id = EnumProperty( name="id",default="Default",items=items_func, update=update_func)
It is clear that it is not easy to make something default when it does not exist, given that it needs to be populated first. So what would be the recommended way to go about such need?