diff --git a/multi_user/bl_types/bl_gpencil.py b/multi_user/bl_types/bl_gpencil.py index 610f368..87aa200 100644 --- a/multi_user/bl_types/bl_gpencil.py +++ b/multi_user/bl_types/bl_gpencil.py @@ -162,7 +162,7 @@ def dump_layer(layer): 'hide', 'annotation_hide', 'lock', - # 'lock_frame', + 'lock_frame', # 'lock_material', # 'use_mask_layer', 'use_lights', @@ -170,12 +170,13 @@ def dump_layer(layer): 'select', 'show_points', 'show_in_front', + # 'thickness' # 'parent', # 'parent_type', # 'parent_bone', # 'matrix_inverse', ] - if layer.id_data.is_annotation: + if layer.thickness != 0: dumper.include_filter.append('thickness') dumped_layer = dumper.dump(layer) diff --git a/multi_user/timers.py b/multi_user/timers.py index 342687f..ad1555a 100644 --- a/multi_user/timers.py +++ b/multi_user/timers.py @@ -162,7 +162,7 @@ class AnnotationUpdates(Timer): logging.debug( "Getting the right on the annotation GP") porcelain.lock(session.repository, - registered_gp.uuid, + [registered_gp.uuid], ignore_warnings=True, affect_dependencies=False) @@ -172,9 +172,10 @@ class AnnotationUpdates(Timer): elif self._annotating: porcelain.unlock(session.repository, - registered_gp.uuid, + [registered_gp.uuid], ignore_warnings=True, affect_dependencies=False) + self._annotating = False class DynamicRightSelectTimer(Timer): def __init__(self, timeout=.1):