From: <kir...@us...> - 2004-07-24 17:47:58
|
Update of /cvsroot/crystal/CS/plugins/cssaver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30572/plugins/cssaver Modified Files: cssaver.cpp Log Message: - PK did the following: - Extended the iSyntaxService for iSaver, - Implemented the iSaverPlugin for ballmesh. - Fixed the texture saving in iSaver for images. Index: cssaver.cpp =================================================================== RCS file: /cvsroot/crystal/CS/plugins/cssaver/cssaver.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- cssaver.cpp 20 Jul 2004 10:35:32 -0000 1.15 +++ cssaver.cpp 24 Jul 2004 17:47:48 -0000 1.16 @@ -125,12 +125,12 @@ iTextureWrapper *texWrap=texList->Get(i); csRef<iDocumentNode> child = current->CreateNodeBefore(CS_NODE_ELEMENT, 0); const char *name=texWrap->QueryObject()->GetName(); + child->SetValue("texture"); if (name && *name) child->SetAttribute("name", name); iImage* img = texWrap->GetImageFile(); if (img) { - child->SetValue("texture"); const char* filename=img->GetName(); if (filename && *filename) CreateValueNode(child, "file", filename); @@ -148,7 +148,7 @@ } else { - CS_ASSERT(false); + //CS_ASSERT(false); } } return true; @@ -491,8 +491,8 @@ parent->SetValue("world"); //TBD: this crashes for me, dunno why, have to look at it more closley. - //if (!SaveTextures(parent)) return 0; - //if (!SaveMaterials(parent)) return 0; + if (!SaveTextures(parent)) return 0; + if (!SaveMaterials(parent)) return 0; //TBD: Save the Factories //if (!SaveFactories(parent)) return 0; |