mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
flame: removing constant True return
This commit is contained in:
parent
66cedb61e9
commit
c025d4c8e4
2 changed files with 2 additions and 6 deletions
|
|
@ -374,8 +374,6 @@ def set_segment_data_marker(segment, data=None):
|
|||
# add tag data to marker's comment
|
||||
marker.comment = json.dumps(data)
|
||||
|
||||
return True
|
||||
|
||||
|
||||
def set_publish_attribute(segment, value):
|
||||
""" Set Publish attribute in input Tag object
|
||||
|
|
@ -388,8 +386,7 @@ def set_publish_attribute(segment, value):
|
|||
tag_data["publish"] = value
|
||||
|
||||
# set data to the publish attribute
|
||||
if not set_segment_data_marker(segment, tag_data):
|
||||
raise AttributeError("Not imprint data to segment")
|
||||
set_segment_data_marker(segment, tag_data)
|
||||
|
||||
|
||||
def get_publish_attribute(segment):
|
||||
|
|
|
|||
|
|
@ -144,8 +144,7 @@ def imprint(segment, data=None):
|
|||
"""
|
||||
data = data or {}
|
||||
|
||||
if not set_segment_data_marker(segment, data):
|
||||
raise AttributeError("Not imprint data to segment")
|
||||
set_segment_data_marker(segment, data)
|
||||
|
||||
# add publish attribute
|
||||
set_publish_attribute(segment, True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue