refactor: move lock/unock to porcelain
This commit is contained in:
parent
df7ca66ad8
commit
431fe0d840
@ -1 +1 @@
|
||||
Subproject commit 45f829b6aea0393c3f29be7a78a178f78bce58ef
|
||||
Subproject commit 15d80abe6ddd28fefb896127a01c12777a22a4e1
|
@ -436,7 +436,12 @@ class SessionPropertyRightOperator(bpy.types.Operator):
|
||||
runtime_settings = context.window_manager.session
|
||||
|
||||
if session:
|
||||
session.change_owner(self.key,
|
||||
if runtime_settings.clients == RP_COMMON:
|
||||
session.unlock(self.key,
|
||||
ignore_warnings=True,
|
||||
affect_dependencies=self.recursive)
|
||||
else:
|
||||
session.lock(self.key,
|
||||
runtime_settings.clients,
|
||||
ignore_warnings=True,
|
||||
affect_dependencies=self.recursive)
|
||||
|
@ -256,7 +256,7 @@ class DynamicRightSelectTimer(Timer):
|
||||
for obj in bpy.data.objects:
|
||||
object_uuid = getattr(obj, 'uuid', None)
|
||||
if object_uuid:
|
||||
is_selectable = not session.is_readonly(object_uuid)
|
||||
is_selectable = not session.repository.is_node_readonly(object_uuid)
|
||||
if obj.hide_select != is_selectable:
|
||||
obj.hide_select = is_selectable
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user