Hi,
I'm using a SoFieldSensor attached to a global field, which is called
when I changed the field. In the CB function I toggle the selected state
of a node.
The node is under a SoSelection node, and the redrawOnSelectionChange is
properly set (since I can select node and I see the refreshing with the
mouse pointer). But the node is not refreshed within the CB (just a
trace tells me the node changed selection state), but only when I move
the Camera. And furthermore, When I click on the displayed node, the
state toggles correctly, but it seems the state of the node set within
the callback is the only one drawn, ie, when the node is selected within
the callback, it stays selected even if I click or move until I deselect
it in the CB.
I don't know if I'm doing right there ?
Cyril ZEKSER
|