From 266bff2ec359406715e751140e76ca24f8fb73ea Mon Sep 17 00:00:00 2001 From: rdeioris Date: Mon, 28 Oct 2024 13:35:09 +0100 Subject: [PATCH] fixed typeName management in override --- src/composition.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/composition.cc b/src/composition.cc index ec5e4934..4afc94c7 100644 --- a/src/composition.cc +++ b/src/composition.cc @@ -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));