feat: append dump function to save the db

This commit is contained in:
Swann Martinez
2019-06-13 18:09:16 +02:00
parent eccc681f7b
commit 021e132fb3
6 changed files with 96 additions and 45 deletions

View File

@ -220,7 +220,6 @@ def load_mesh(target=None, data=None, create=False):
material_to_load = []
material_to_load = revers(data["materials"])
target.materials.clear()
# SLots
i = 0
@ -265,11 +264,11 @@ def load_object(target=None, data=None, create=False):
client = bpy.context.window_manager.session.username
if target.id == client:
if target.id == client or target.id == "Common":
target.hide_select = False
else:
target.hide_select = True
except Exception as e:
logger.error("Object {} loading error: {} ".format(data["name"], e))
@ -342,7 +341,7 @@ def load_collection(target=None, data=None, create=False):
client = bpy.context.window_manager.session.username
if target.id == client:
if target.id == client or target.id == "Common":
target.hide_select = False
else:
target.hide_select = True