Skip to content

Commit

Permalink
fixed typeName management in override
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeioris committed Oct 28, 2024
1 parent 69b6e5a commit 266bff2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/composition.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,11 @@ static bool OverridePrimSpecRec(uint32_t depth, PrimSpec &dst,
if (depth > (1024 * 1024 * 128)) {
PUSH_ERROR_AND_RETURN("PrimSpec tree too deep.");
}

// overrides can omit types (in such a case get it from the src)
if (dst.typeName().empty()) {
dst.typeName() = src.typeName();
}

DCOUT("update_from");
DCOUT(print_prim_metas(src.metas(), 1));
Expand Down

0 comments on commit 266bff2

Please sign in to comment.