String the consumers into the list of the provider they are attached to.

Noticed by:	jhb
This commit is contained in:
Poul-Henning Kamp 2004-03-08 16:37:08 +00:00
parent ffe9fd66ee
commit 4aa50d28b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126748

View File

@ -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);
}
}
}
}