From 4ef2025b26d846218eab4d50dcb10886456d4cfd Mon Sep 17 00:00:00 2001 From: Swann Martinez Date: Fri, 10 May 2019 15:31:23 +0200 Subject: [PATCH] feat: collection selection lock --- helpers.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/helpers.py b/helpers.py index 8d1b09b..e6ae35b 100644 --- a/helpers.py +++ b/helpers.py @@ -340,6 +340,15 @@ def load_collection(target=None, data=None, create=False): bpy.data.collections[collection]) 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 Exception as e: logger.error("Collection loading error: {}".format(e))