From Luigi Calori, changed hardwired "cow.osg" paramter to argv[1]
This commit is contained in:
parent
9da1c67961
commit
592143b018
@ -28,7 +28,7 @@ bool wxOsgApp::OnInit()
|
||||
wxSize(200, 200), wxSUNKEN_BORDER);
|
||||
|
||||
// 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)
|
||||
{
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user