mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
skip layers without content
This commit is contained in:
parent
b5cab8358f
commit
75efbd9a51
1 changed files with 8 additions and 0 deletions
|
|
@ -61,6 +61,14 @@ class ExtractImageForLayout(pype.api.Extractor):
|
|||
):
|
||||
continue
|
||||
|
||||
has_size = layer.width > 0 and layer.height > 0
|
||||
if not has_size:
|
||||
self.log.debug((
|
||||
"Skipping layer \"{}\" because does "
|
||||
"not have any content."
|
||||
).format(layer.name))
|
||||
continue
|
||||
|
||||
layer_name = layer.name.replace(" ", "_")
|
||||
instance_name = subset_name = f"image{layer_name}"
|
||||
self.log.info(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue