feat: replicated datablock configuration

This commit is contained in:
Swann Martinez
2019-07-02 15:55:57 +02:00
parent 2b7f40942b
commit 3f834d0828
3 changed files with 54 additions and 11 deletions

View File

@ -13,6 +13,23 @@ CONFIG = os.path.join(CONFIG_DIR, "app.yaml")
THIRD_PARTY = os.path.join(os.path.dirname(os.path.abspath(__file__)), "libs")
PYTHON_PATH = None
SUBPROCESS_DIR = None
DEFAULT_CONFIG = {
"replicated_types" : {
'Client':True,
'Texture':True,
'Curve':True,
'Material':True,
'Light':True,
'Camera':True,
'Mesh':True,
'Armature':True,
'GreasePencil':True,
'Object':True,
'Action':True,
'Collection':True,
'Scene':True
}
}
def load_config():
@ -21,8 +38,8 @@ def load_config():
return yaml.safe_load(config_file)
except FileNotFoundError:
logger.info("no config")
return {}
return DEFAULT_CONFIG
def save_config(config):
logger.info("saving config")