Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32316/src/libopenvrml/openvrml
Modified Files:
browser.cpp
Log Message:
Fixed PROTO eventIn and eventOut lookup functions to try the "set_" prefix and "_changed" suffix (respectively) when looking up event_listener and event_emitter objects.
Index: browser.cpp
===================================================================
RCS file: /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml/browser.cpp,v
retrieving revision 1.202
retrieving revision 1.203
diff -C2 -d -r1.202 -r1.203
*** browser.cpp 22 Jan 2007 23:38:01 -0000 1.202
--- browser.cpp 3 Feb 2007 08:22:39 -0000 1.203
***************
*** 1893,1896 ****
--- 1893,1899 ----
eventin_map_t::iterator pos = this->eventin_map.find(id);
if (pos == this->eventin_map.end()) {
+ pos = this->eventin_map.find("set_" + id);
+ }
+ if (pos == this->eventin_map.end()) {
throw unsupported_interface(this->type(),
node_interface::eventin_id,
***************
*** 1914,1917 ****
--- 1917,1923 ----
eventout_map_t::iterator pos = this->eventout_map.find(id);
if (pos == this->eventout_map.end()) {
+ pos = this->eventout_map.find(id + "_changed");
+ }
+ if (pos == this->eventout_map.end()) {
throw unsupported_interface(this->type(),
node_interface::eventout_id,
|