Hi everyone,

Be warned, this is a newbie question.
I am currently trying to add several update callbacks (their execution order is 
irrelevant) to a same node, and all my attempts miserably failed.
I tried to rely on nested callbacks, but to no avail.
I must be missing something obvious... so any help would be more than welcome.

I am playing with OSG-3.2.1-rc3 compiled with Visual Studio 10 on Windows 7 
(x64).

Both the following pieces of code ends up with a stack overflow in 
NodeCallback::run. :(
Thanks in advance.

The problem seems to come from the statement in the file Callback.cpp:25 which 
does not seem to delegate computation to the nested callback if present:

Code:
if (_nestedCallback.valid()) return run(object, data);



Would calling 
Code:
if (_nestedCallback.valid()) return _nestedCallback->run(object, data)

 instead be enough?

Regards.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59829#59829





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to