Skip to content

Commit

Permalink
Cleaning: old 'id' design (ynput#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilix4 committed Jun 1, 2023
1 parent 333a231 commit c4b2daf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions openpype/plugins/publish/integrate_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,14 +616,8 @@ def register(self, instance, repres):
continue
repre_context[key] = template_data[key]

# Initialize ID, trying to get it from an earlier stage
repre_id = repre.get('id')

# If ID has been created in early stage, cast to ObjectId from str
if repre_id:
repre_id = ObjectId(repre_id)

# Use previous representation's id if there are any
repre_id = None
repre_name_low = repre["name"].lower()
for _repre in existing_repres:
# NOTE should we check lowered names?
Expand Down

0 comments on commit c4b2daf

Please sign in to comment.