From: Braden M. <br...@us...> - 2007-09-20 06:40:35
|
Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17952/src/libopenvrml/openvrml Modified Files: Tag: OpenVRML-0_16-BRANCH vrml97node.cpp Log Message: Catch any exception thrown in the process of creating the image stream. Index: vrml97node.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml/vrml97node.cpp,v retrieving revision 1.108.2.16 retrieving revision 1.108.2.17 diff -C2 -d -r1.108.2.16 -r1.108.2.17 *** vrml97node.cpp 9 Jul 2007 06:54:29 -0000 1.108.2.16 --- vrml97node.cpp 20 Sep 2007 06:40:15 -0000 1.108.2.17 *************** *** 12465,12483 **** /** ! * @brief Called to lazily update texture data. */ void image_texture_node::update_texture() { if (this->texture_needs_update) { ! if (!this->url_.mfstring::value().empty()) { ! using std::auto_ptr; ! auto_ptr<resource_istream> in( ! this->scene()->get_resource(this->url_.mfstring::value())); ! auto_ptr<stream_listener> listener( ! new image_stream_listener(in->url(), ! this->image_, ! *this, ! this->mutex())); ! read_stream(in, listener); } this->texture_needs_update = false; --- 12465,12487 ---- /** ! * @brief Called to update texture data lazily. */ void image_texture_node::update_texture() { if (this->texture_needs_update) { ! try { ! if (!this->url_.mfstring::value().empty()) { ! using std::auto_ptr; ! auto_ptr<resource_istream> in( ! this->scene()->get_resource(this->url_.mfstring::value())); ! auto_ptr<stream_listener> listener( ! new image_stream_listener(in->url(), ! this->image_, ! *this, ! this->mutex())); ! read_stream(in, listener); ! } ! } catch (std::exception & ex) { ! this->scene()->browser().err(ex.what()); } this->texture_needs_update = false; *************** *** 12495,12499 **** * @brief Construct. * ! * @param browser the @c browser associated with this @c node_metatype object. */ indexed_face_set_metatype:: --- 12499,12504 ---- * @brief Construct. * ! * @param browser the @c browser associated with this @c node_metatype ! * object. */ indexed_face_set_metatype:: |