Hi all,
I use wrappers on NodePaths and and set a pythontag on each NodePath to get back the corresponding wrapper.
My problem is that the pythonTag is there at the beginning of a method and not there at the end.
This is likely due to the framework I am using. I suspect some objects are created instead of using the ones already present.
I am wondering if there is a way to install a callback on a node or nodepath to track/debug its deletion/modification. or Any best practive/trick to do that.
That would be very useful.
def replace_nodes(self, nodes):
print "nodes %s, %s" %(nodes, map(type, nodes))
nn = []
for n in nodes:
po= n.getPythonTag("mesh_view")
assert_(po) # works
self.npos.append(po)
nn.append(po.source.get_value())
#==
self.source.replace(nn, self)
for p in nodes:
assert_(p.getPythonTag( "mesh_view" )) # don't work
self.pos = self.npos
self.npos = []