Thanks for the quick fix. I am glad to know it was something that easy. I was a little surprised though that this method had to be put in the render action code instead of the class. Does this code not use a visitor pattern like the render action does? How would a user extend OpenSG with their own node type? Would they have to add code to the RenderTraversal cpp files?
-Allen OpenSG wrote: >#112: Switch core does not work with traversal action >-----------------------+---------------------------------------------------- > Reporter: allenb | Owner: cneumann > Type: defect | Status: closed > Priority: critical | Milestone: 2.0 Beta > Component: System | Version: 2.0 >Resolution: fixed | Keywords: >-----------------------+---------------------------------------------------- >Changes (by cneumann): > > * status: new => closed > * resolution: => fixed > >Comment: > > fixed in r356, the test I used is attached: > [attachment:ticket:112:testSwitch.cpp testSwitch.cpp]. > > Here's what I did: created two functions in > `OSGRenderTraversalActionInit.cpp`, `SwitchRenderEnter` and > `SwitchRenderLeave`, that implement the Switch core behaviour and then > registered them with the `RenderTraversalAction` inside the function > `RenderTraversalActionInitialize` in the same file. > > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Opensg-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-core
