Ticket #112 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Switch core does not work with traversal action

Reported by: allenb Assigned to: cneumann
Priority: critical Milestone: 2.0 Beta
Component: System Version: 2.0
Keywords: Cc:
Completion:

Description

When rendering a tree with a switch node using a traversal action, the switch node does not get used.

Attachments

testSwitch.cpp (5.0 kB) - added by cneumann on 10/22/06 14:54:28.
simple test of Switch core with RenderTraversalAction

Change History

10/22/06 12:49:58 changed by cneumann

  • owner changed from unassigned to cneumann.

It's not registered with the RenderTraversalAction, I'll add it.

10/22/06 13:44:15 changed by allenb

Thanks. Once you do that could you provide a few details about how to add nodes to the render traversal action? This is probably something we should document in the dev guide at some point.

10/22/06 14:54:28 changed by cneumann

  • attachment testSwitch.cpp added.

simple test of Switch core with RenderTraversalAction

10/22/06 15:07:42 changed by cneumann

  • status changed from new to closed.
  • resolution set to fixed.

fixed in r356, the test I used is attached: 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.