Skip to content

Commit

Permalink
[builder] Reconstruct the instance name from family+style (#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens authored Oct 23, 2024
1 parent 5472688 commit d23ad21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/gftools/builder/operations/instantiateUfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def validate(self):
def relevant_instance(self):
desired = self.original["instance_name"]
relevant_instance = [
i for i in self.first_source.instances if i.name == desired
i
for i in self.first_source.instances
if i.name == desired or i.familyName + " " + i.styleName == desired
]
if len(relevant_instance) == 0:
return None
Expand Down

0 comments on commit d23ad21

Please sign in to comment.