Refactor ownership history system to be simpler and just a usecase. See #1399.

This commit is contained in:
Dion Moult
2021-03-25 11:42:12 +11:00
parent 9c00872a57
commit 489a248e9a
15 changed files with 86 additions and 109 deletions
@@ -0,0 +1,33 @@
# import bpy
# import addon_utils
settings = {
"person": None,
"organisation": None,
"ApplicationIdentifier": "",
"ApplicationFullName": "",
"Version": "",
"ChangeAction": "NOTDEFINED",
}
# settings = {
# "person": file.by_id(int(bpy.context.scene.BIMOwnerProperties.user_person)),
# "organisation": file.by_id(int(bpy.context.scene.BIMOwnerProperties.user_organisation)),
# "ApplicationIdentifier": "BlenderBIM",
# "ApplicationFullName": "BlenderBIM Add-on",
# "Version": get_application_version(),
# }
#
#
# def get_application_version():
# return ".".join(
# [
# str(x)
# for x in [
# addon.bl_info.get("version", (-1, -1, -1))
# for addon in addon_utils.modules()
# if addon.bl_info["name"] == "BlenderBIM"
# ][0]
# ]
# )