diff options
Diffstat (limited to 'lib/libgeom')
-rw-r--r-- | lib/libgeom/geom_xml2tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c index 6c8d738..75959c3 100644 --- a/lib/libgeom/geom_xml2tree.c +++ b/lib/libgeom/geom_xml2tree.c @@ -341,9 +341,13 @@ geom_xml2tree(struct gmesh *gmp, char *p) } LIST_FOREACH(co, &ge->consumer, consumer) { co->geom = geom_lookupid(gmp, co->geom)->ptr; - if (co->provider != NULL) + if (co->provider != NULL) { co->provider = geom_lookupid(gmp, co->provider)->ptr; + LIST_INSERT_HEAD( + &co->provider->consumers, + co, consumers); + } } } } |