Ignore:
Timestamp:
06/07/06 10:59:55 (18 years ago)
Author:
mattausch
Message:

debug run: fixing memory holes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/UnigraphicsParser.cpp

    r1001 r1002  
    161161                if (ROTATE_SCENE) 
    162162                        RotateMesh(currentMesh); 
    163                                 currentMesh->Preprocess(); 
    164                                 // make an instance of this mesh 
    165                                 MeshInstance *mi = new MeshInstance(currentMesh); 
    166                                 root->mGeometry.push_back(mi);   
    167                                 currentMesh = new Mesh; 
     163 
     164                currentMesh->Preprocess(); 
     165                // make an instance of this mesh 
     166                MeshInstance *mi = new MeshInstance(currentMesh); 
     167                root->mGeometry.push_back(mi);   
     168                currentMesh = MeshManager::GetSingleton()->CreateResource(); 
    168169      } 
    169170    } 
Note: See TracChangeset for help on using the changeset viewer.