SwitchNode - getVisibleChild() missing?


Does anyone know how I can determine which child a SwitchNode is currently displaying?

There is a setVisibleChild function, but the matching get function is missing.

The odd thing is, that the C++ code has the function, and also seems to publish it: (from SwitchNode.h)

  INLINE void set_visible_child(int index);
  virtual int get_visible_child() const;

Any ideas?


Hmm, that is odd. I will investigate.


It turned out to be a minor bug in interrogate, for which I have just committed a fix. Interrogate was failing to publish that particular method because it was a virtual method inherited from a base class, but the base class did not declare it PUBLISHED. The newly fixed interrogate will correctly publish the method anyway.