[brlcad-commits] SF.net SVN: brlcad:[46987] brlcad/trunk/src/conv/3dm/3dm-g.cpp
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2011-09-29 17:56:55
|
Revision: 46987 http://brlcad.svn.sourceforge.net/brlcad/?rev=46987&view=rev Author: brlcad Date: 2011-09-29 17:56:44 +0000 (Thu, 29 Sep 2011) Log Message: ----------- don't use the file path as the toplevel object name. use its basename instead since the slashes cause hell. Modified Paths: -------------- brlcad/trunk/src/conv/3dm/3dm-g.cpp Modified: brlcad/trunk/src/conv/3dm/3dm-g.cpp =================================================================== --- brlcad/trunk/src/conv/3dm/3dm-g.cpp 2011-09-29 17:50:22 UTC (rev 46986) +++ brlcad/trunk/src/conv/3dm/3dm-g.cpp 2011-09-29 17:56:44 UTC (rev 46987) @@ -443,8 +443,10 @@ } /* use accumulated layer information to build mged hierarchy */ + char *toplevel = bu_basename(outFileName); BuildHierarchy(outfp, dump); - mk_lcomb(outfp, outFileName, &all_regions, 0, NULL, NULL, NULL, 0); + mk_lcomb(outfp, toplevel, &all_regions, 0, NULL, NULL, NULL, 0); + bu_free(toplevel, "bu_basename toplevel"); wdb_close(outfp); model.Destroy(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |