Skip to content

Commit

Permalink
Merge pull request #428 from BigRoy/enhancement/workfile_templates_de…
Browse files Browse the repository at this point in the history
…lete_placeholder_no_loads

Workfile Templates: Delete placeholder if Keep Placeholder is not enabled
  • Loading branch information
iLLiCiTiT authored Apr 18, 2024
2 parents 235e634 + 2b6889a commit 8757051
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1588,6 +1588,8 @@ def populate_load_placeholder(self, placeholder, ignore_repre_ids=None):
self.log.info((
"There's no representation for this placeholder: {}"
).format(placeholder.scene_identifier))
if not placeholder.data.get("keep_placeholder", True):
self.delete_placeholder(placeholder)
return

loaders_by_name = self.builder.get_loaders_by_name()
Expand Down

0 comments on commit 8757051

Please sign in to comment.