From 6126756446121226b3e20a7c23888244c441f529 Mon Sep 17 00:00:00 2001 From: torcs-ng Date: Fri, 26 Jun 2015 23:14:47 +0000 Subject: [PATCH] - Added espie track osg format git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6032 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: a2aab1d03f9486ee05a97365b33a4787e1fbcb34 Former-commit-id: 42bc7a00bd77d98934b73b1390cae19dab8e0f5e --- src/modules/graphic/osggraph/Scenery/OsgBackground.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/modules/graphic/osggraph/Scenery/OsgBackground.cpp b/src/modules/graphic/osggraph/Scenery/OsgBackground.cpp index 07109dd44..e2b54167b 100644 --- a/src/modules/graphic/osggraph/Scenery/OsgBackground.cpp +++ b/src/modules/graphic/osggraph/Scenery/OsgBackground.cpp @@ -24,7 +24,8 @@ #include "OsgScenery.h" -SDBackground::SDBackground(void) +SDBackground::SDBackground(void) : + _background(NULL) { } @@ -42,9 +43,10 @@ void SDBackground::build(bool type, int grWrldX, int grWrldY, int grWrldZ, const std::string LocalPath = GetDataDir(); osgDB::FilePathList pathList = osgDB::Registry::instance()->getDataFilePathList(); - pathList.push_back(TrackPath); - pathList.push_back(LocalPath+"data/objects/"); - pathList.push_back(LocalPath+"data/textures/"); + + pathList.push_front(LocalPath+"data/objects/"); + pathList.push_front(LocalPath+"data/textures/"); + pathList.push_front(TrackPath); osgDB::Registry::instance()->setDataFilePathList(pathList); osg::ref_ptr _background_transform = new osg::MatrixTransform;