feat: ground work for custom font support

This commit is contained in:
Swann
2020-09-18 17:04:24 +02:00
parent 3108a06e89
commit e9f416f682
5 changed files with 100 additions and 2 deletions

View File

@ -57,11 +57,13 @@ def get_datablock_users(datablock):
def clean_scene():
builtin = ['Bfont']
for type_name in dir(bpy.data):
try:
type_collection = getattr(bpy.data, type_name)
for item in type_collection:
type_collection.remove(item)
if item.name not in builtin:
type_collection.remove(item)
except:
continue