Using new Blender ID addon public API

This commit is contained in:
Sybren A. Stüvel 2016-04-01 14:11:12 +02:00
parent 364cc75548
commit 1bb32033b6
2 changed files with 6 additions and 6 deletions

View File

@ -33,14 +33,14 @@ class BlenderCloudPreferences(AddonPreferences):
# Carefully try and import the Blender ID addon
try:
import blender_id.profiles as blender_id_profiles
import blender_id
except ImportError:
blender_id_profiles = None
blender_id = None
blender_id_profile = None
else:
blender_id_profile = blender_id_profiles.get_active_profile()
blender_id_profile = blender_id.get_active_profile()
if blender_id_profiles is None:
if blender_id is None:
blender_id_icon = 'ERROR'
blender_id_text = "This add-on requires Blender ID"
blender_id_help = "Make sure that the Blender ID add-on is installed and activated"

View File

@ -68,8 +68,8 @@ def blender_id_profile() -> dict:
if not active_user_id:
return None
import blender_id.profiles
return blender_id.profiles.get_active_profile()
import blender_id
return blender_id.get_active_profile()
def pillar_api(pillar_endpoint: str = None) -> pillarsdk.Api: