From Luigi Calori, changed hardwired "cow.osg" paramter to argv[1]

This commit is contained in:
Robert Osfield 2007-05-21 12:30:14 +00:00
parent 9da1c67961
commit 592143b018

View File

@ -28,7 +28,7 @@ bool wxOsgApp::OnInit()
wxSize(200, 200), wxSUNKEN_BORDER); wxSize(200, 200), wxSUNKEN_BORDER);
// load the scene. // load the scene.
osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFile("cow.osg"); osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFile(argv[1]);
if (!loadedModel) if (!loadedModel)
{ {
return false; return false;