- Timestamp:
- 02/27/08 09:30:29 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/System/FileIO/Base/OSGSceneFileHandler.cpp
r1039 r1063 166 166 GraphOpSeq *graphOpSeq ) 167 167 { 168 SceneFileType *type = getFileType(fileNameOrExtension);169 Node RefPtrscene;168 SceneFileType *type = getFileType(fileNameOrExtension); 169 NodeInternalRefPtr scene; 170 170 171 171 if(!fileNameOrExtension) … … 256 256 GraphOpSeq *graphOpSeq ) 257 257 { 258 FCPtrStore nodeVec;259 Node RefPtr scene(read(is, fileNameOrExtension));258 FCPtrStore nodeVec; 259 NodeInternalRefPtr scene(read(is, fileNameOrExtension)); 260 260 261 261 if(scene == NullFC) … … 264 264 while(scene->getNChildren() > 0) 265 265 { 266 Node RefPtr child (scene->getChild(0));267 Node RefPtr newChild(Node::create() );266 NodeInternalRefPtr child (scene->getChild(0)); 267 NodeInternalRefPtr newChild(Node::create() ); 268 268 269 269 while(child->getNChildren() > 0) … … 277 277 graphOpSeq->run(newChild); 278 278 279 nodeVec.push_back(FieldContainer RefPtr(newChild));279 nodeVec.push_back(FieldContainerInternalRefPtr(newChild)); 280 280 281 281 scene->subChild(child); … … 323 323 } 324 324 325 SceneFileType *type = getFileType(fullFilePath.c_str());326 Node RefPtrscene;325 SceneFileType *type = getFileType(fullFilePath.c_str()); 326 NodeInternalRefPtr scene; 327 327 328 328 if(type != NULL) … … 419 419 if(nodeVec.empty() == true) 420 420 { 421 Node RefPtr scene(read(fullFilePath.c_str()));421 NodeInternalRefPtr scene(read(fullFilePath.c_str())); 422 422 423 423 if(scene == NullFC) … … 426 426 while(scene->getNChildren() > 0) 427 427 { 428 Node RefPtr child (scene->getChild(0));429 Node RefPtr newChild(Node::create() );428 NodeInternalRefPtr child (scene->getChild(0)); 429 NodeInternalRefPtr newChild(Node::create() ); 430 430 431 431 while(child->getNChildren() > 0) … … 439 439 graphOpSeq->run(newChild); 440 440 441 nodeVec.push_back(FieldContainer RefPtr(newChild));441 nodeVec.push_back(FieldContainerInternalRefPtr(newChild)); 442 442 443 443 scene->subChild(child);
