Skip to content

Commit

Permalink
Fix bug where array attribubte wasn't always added to driver config
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Mar 26, 2019
1 parent e04cd7b commit 95d5cfd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/project.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,13 @@ bake_attr* bake_project_set_attr_array(
attr->name = ut_strdup(name);
attr->kind = BAKE_ARRAY;
attr->is.array = ut_ll_new();

bake_project_driver* driver = bake_project_get_driver(project, driver_id);
if (!driver->attributes) {
driver->attributes = ut_ll_new();
}

ut_ll_append(driver->attributes, attr);
}

if (attr->kind != BAKE_ARRAY) {
Expand Down

0 comments on commit 95d5cfd

Please sign in to comment.