feat(client): clean serialisation worker

This commit is contained in:
Swann Martinez
2019-05-02 15:52:17 +02:00
parent 2e803080ed
commit d454c95a9b
3 changed files with 28 additions and 95 deletions

View File

@ -175,6 +175,13 @@ def load_object(target=None, data=None, create=False):
target.matrix_world = mathutils.Matrix(data["matrix_world"])
target.id = data['id']
client = bpy.context.scene.session_settings.username
if target.id == client:
target.hide_select = False
else:
target.hide_select = True
except:
logger.error("Object {} loading error ".format(data["name"]))