From 7db3c18213e2c7bd985a57b3b9b76e86c7ed8833 Mon Sep 17 00:00:00 2001 From: Swann Date: Thu, 15 Oct 2020 17:48:04 +0200 Subject: [PATCH] feat: affect dependencies option in change owner --- multi_user/operators.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/multi_user/operators.py b/multi_user/operators.py index d5fc58e..853ba28 100644 --- a/multi_user/operators.py +++ b/multi_user/operators.py @@ -398,6 +398,7 @@ class SessionPropertyRightOperator(bpy.types.Operator): bl_options = {"REGISTER"} key: bpy.props.StringProperty(default="None") + recursive: bpy.props.BoolProperty(default=True) @classmethod def poll(cls, context): @@ -413,12 +414,17 @@ class SessionPropertyRightOperator(bpy.types.Operator): col = layout.column() col.prop(runtime_settings, "clients") + row = col.row() + row.label(text="Affect dependencies") + row.prop(self, "recursive", text="") def execute(self, context): runtime_settings = context.window_manager.session if session: - session.change_owner(self.key, runtime_settings.clients) + session.change_owner(self.key, + runtime_settings.clients, + recursive=self.recursive) return {"FINISHED"}