fix: annotation lock

This commit is contained in:
Swann 2021-07-14 12:38:30 +02:00
parent 77bf269fb5
commit 1b81251a11
2 changed files with 6 additions and 4 deletions

View File

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

View File

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