asset_library/adapters/adapter.py

12 lines
258 B
Python
Raw Permalink Normal View History

2022-12-24 15:30:32 +01:00
from bpy.types import PropertyGroup
2023-01-17 18:05:22 +01:00
class Adapter(PropertyGroup):
2022-12-24 15:30:32 +01:00
#def __init__(self):
name = "Base Adapter"
#library = None
def to_dict(self):
2023-01-17 18:05:22 +01:00
return {p: getattr(self, p) for p in self.bl_rna.properties.keys() if p !='rna_type'}