feat: custom cache directory in userpref

This commit is contained in:
Swann Martinez
2020-03-02 11:09:45 +01:00
parent 8e600778ab
commit 16147ae2ba
9 changed files with 46 additions and 21 deletions

View File

@ -58,7 +58,7 @@ class SessionStartOperator(bpy.types.Operator):
def execute(self, context):
global client, delayables, ui_context, server_process
settings = bpy.context.preferences.addons[__package__].preferences
settings = utils.get_preferences()
runtime_settings = context.window_manager.session
users = bpy.data.window_managers['WinMan'].online_users
@ -482,7 +482,7 @@ def depsgraph_evaluation(scene):
context = bpy.context
blender_depsgraph = bpy.context.view_layer.depsgraph
dependency_updates = [u for u in blender_depsgraph.updates]
session_infos = bpy.context.preferences.addons[__package__].preferences
session_infos = utils.get_preferences()
# NOTE: maybe we don't need to check each update but only the first