Attract: Send relink/unlink shots as PATCH
This commit is contained in:
parent
fd67675c12
commit
965b02cec4
@ -197,6 +197,7 @@ class AttractOperatorMixin:
|
|||||||
'description': '',
|
'description': '',
|
||||||
'properties': {'status': 'todo',
|
'properties': {'status': 'todo',
|
||||||
'notes': '',
|
'notes': '',
|
||||||
|
'used_in_edit': True,
|
||||||
'trim_start_in_frames': strip.frame_offset_start,
|
'trim_start_in_frames': strip.frame_offset_start,
|
||||||
'duration_in_edit_in_frames': strip.frame_final_duration,
|
'duration_in_edit_in_frames': strip.frame_final_duration,
|
||||||
'cut_in_timeline_in_frames': strip.frame_final_start},
|
'cut_in_timeline_in_frames': strip.frame_final_start},
|
||||||
@ -254,6 +255,7 @@ class AttractOperatorMixin:
|
|||||||
strip.atc_is_synced = False
|
strip.atc_is_synced = False
|
||||||
return {'CANCELLED'}
|
return {'CANCELLED'}
|
||||||
|
|
||||||
|
pillar.sync_call(node.patch, {'op': 'relink'})
|
||||||
strip.atc_is_synced = True
|
strip.atc_is_synced = True
|
||||||
if not refresh:
|
if not refresh:
|
||||||
strip.atc_name = node.name
|
strip.atc_name = node.name
|
||||||
@ -391,6 +393,8 @@ class AttractStripUnlink(AttractOperatorMixin, Operator):
|
|||||||
remove_atc_props(strip)
|
remove_atc_props(strip)
|
||||||
|
|
||||||
if atc_object_id:
|
if atc_object_id:
|
||||||
|
node = Node({'_id': atc_object_id})
|
||||||
|
pillar.sync_call(node.patch, {'op': 'unlink'})
|
||||||
self.report({'INFO'}, 'Shot %s has been unlinked from Attract.' % atc_object_id)
|
self.report({'INFO'}, 'Shot %s has been unlinked from Attract.' % atc_object_id)
|
||||||
|
|
||||||
draw.tag_redraw_all_sequencer_editors()
|
draw.tag_redraw_all_sequencer_editors()
|
||||||
|
Reference in New Issue
Block a user