Per-BlenderID-user cache.

Different users might have different access rights, and thus access
to different information.
This commit is contained in:
2016-03-22 15:20:22 +01:00
parent af7883da73
commit ac29d49450
5 changed files with 24 additions and 18 deletions

View File

@@ -9,7 +9,7 @@ import bpy
from bpy.types import AddonPreferences, Operator, WindowManager, Scene
from bpy.props import StringProperty
from . import pillar, gui, http_cache
from . import pillar, gui
ADDON_NAME = 'blender_cloud'
@@ -103,11 +103,6 @@ def register():
bpy.utils.register_class(BlenderCloudPreferences)
bpy.utils.register_class(PillarCredentialsUpdate)
WindowManager.thumbnails_cache = StringProperty(
name="Thumbnails cache",
subtype='DIR_PATH',
default=os.path.join(http_cache.cache_directory(), 'thumbnails'))
WindowManager.blender_cloud_project = StringProperty(
name="Blender Cloud project UUID",
default='5672beecc0261b2005ed1a33') # TODO: don't hard-code this