Changeset 1404 for GTP/trunk/Lib/Vis/Preprocessing/src/X3dParser.cpp
- Timestamp:
- 09/18/06 02:23:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/X3dParser.cpp
r1379 r1404 250 250 for (tit = triangles.begin(); tit != tit_end; ++ tit) 251 251 { 252 cout << "triangle: " << *tit << endl;252 //cout << "triangle: " << *tit << endl; 253 253 TriangleIntersectable *ti = new TriangleIntersectable(*tit); 254 254 mCurrentNode->mGeometry.push_back(ti); … … 292 292 mCurrentNode->mGeometry.push_back(mi); 293 293 294 if (mCurrentMaterial )294 if (mCurrentMaterial && !mCurrentMesh->mMaterial) 295 295 { 296 296 // HACK: add the material to the mesh directly if no material yet 297 if (!mCurrentMesh->mMaterial) 298 mCurrentMesh->mMaterial = mCurrentMaterial; 297 mCurrentMesh->mMaterial = mCurrentMaterial; 299 298 } 300 299 }
Note: See TracChangeset
for help on using the changeset viewer.