Merge branch '219-lock-annotation-doesn-t-sync' into 'develop'
Resolve "Lock annotation doesn't sync" See merge request slumber/multi-user!143
This commit is contained in:
commit
cab6625399
@ -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)
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user