Hi,
This patch permits me to avoid a segfault :
Index: simgear/scene/model/modellib.cxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/model/modellib.cxx,v
retrieving revision 1.12
diff -u -r1.12 modellib.cxx
--- simgear/scene/model/modellib.cxx 12 Apr 2009 09:46:36 -0000 1.12
+++ simgear/scene/model/modellib.cxx 1 May 2009 12:46:44 -0000
@@ -68,7 +68,7 @@
osg::Node *n = readNodeFile(path, opt.get());
if(data)
data->modelLoaded(path, data->getProperties(), n);
- if (n->getName().empty())
+ if ((n != NULL) && n->getName().empty())
n->setName("Direct loaded model \"" + path + "\"");
return n;
Regards
--
Nicolas VIVIEN
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel