feat: collection selection lock

This commit is contained in:
Swann Martinez 2019-05-10 15:31:23 +02:00
parent 4192b88e6f
commit 4ef2025b26
No known key found for this signature in database
GPG Key ID: 414CCAFD8DA720E1

View File

@ -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))