feat: start to resolve data by uuid

This commit is contained in:
Swann Martinez
2019-10-07 17:32:56 +02:00
parent 5867d39a52
commit 411d77643e
5 changed files with 39 additions and 14 deletions
+7
View File
@@ -16,6 +16,13 @@ logger = logging.getLogger(__name__)
logger.setLevel(logging.ERROR)
def find_from_attr(attr_name, attr_value, list):
for item in list:
if getattr(item, attr_name, None) == attr_value:
return item
return None
def get_datablock_users(datablock):
users = []
supported_types = bpy.context.window_manager.session.supported_datablock