- Update ref-sector-p4

- Update OsgGraph

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5968 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 94cbd5cd45ddc98aba40d6c3f17edfa59cd90dd5
Former-commit-id: 89cd5c9ebb28572124a569ce7d828b5608c8567e
This commit is contained in:
torcs-ng 2015-04-14 01:15:51 +00:00
parent 01a3dddd15
commit 124d265af8

View file

@ -240,12 +240,9 @@ osg::ref_ptr<osg::Node> SDCar::loadCar(tCarElt *car, bool tracktype, bool subcat
snprintf(path, 256, "%s/%s", SECT_GROBJECTS, LST_REARWING);
nranges = GfParmGetEltNb(handle, path) + 1;
snprintf(path, 256, "%s/%s", SECT_GROBJECTS, LST_REARWING);
nranges = GfParmGetEltNb(handle, path) + 1;
if (nranges > 1)
{
osg::ref_ptr<osg::Switch> pWing3 = new osg::Switch;
//osg::ref_ptr<osg::Switch> pWing3 = new osg::Switch;
int selIndex = 0;
std::string tmp = GetDataDir();
sprintf(buf, "cars/models/%s/", car->_carName);