Hello Christoph,
Christoph John wrote:
> Hello list,
> I have a geometry node and like to query the reference count of this node as
> I want to ensure that i do not have pending references when I delete it from
> the graph.
maybe I misunderstand, but this sounds a bit as if you are using the
reference count as an indicator for something else ?
Do you add the Geometry core to multiple nodes and now want to find out
if it is used in more than one place ? For that it would be better to
look at the size of the parents field of the core:
if(geo->getMFParents()->size() > 1)
// geo is a shared core
> How can I query the reference count?
GeometryPtr geo;
geo.getRefCount(); // note the "." instead of "->"
Hope it helps,
Carsten
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users