Revision: 78151
http://sourceforge.net/p/brlcad/code/78151
Author: starseeker
Date: 2021-01-30 14:08:22 +0000 (Sat, 30 Jan 2021)
Log Message:
-----------
Dry run only controls writing the internals - all other steps should be active.
Modified Paths:
--------------
brlcad/trunk/src/libged/npush/npush.cpp
Modified: brlcad/trunk/src/libged/npush/npush.cpp
===================================================================
--- brlcad/trunk/src/libged/npush/npush.cpp 2021-01-29 22:17:49 UTC (rev
78150)
+++ brlcad/trunk/src/libged/npush/npush.cpp 2021-01-30 14:08:22 UTC (rev
78151)
@@ -768,14 +768,12 @@
BU_PUT(in, struct rt_db_internal);
return;
}
- if (!s->dry_run) {
- dp = db_diradd(s->wdbp->dbip, dpi.iname.c_str(),
RT_DIR_PHONY_ADDR, 0, dpi.dp->d_flags, (void *)&in->idb_type);
- if (dp == RT_DIR_NULL) {
- bu_log("Unable to add %s to the database directory\n",
dpi.iname.c_str());
- rt_db_free_internal(in);
- BU_PUT(in, struct rt_db_internal);
- return;
- }
+ dp = db_diradd(s->wdbp->dbip, dpi.iname.c_str(), RT_DIR_PHONY_ADDR,
0, dpi.dp->d_flags, (void *)&in->idb_type);
+ if (dp == RT_DIR_NULL) {
+ bu_log("Unable to add %s to the database directory\n",
dpi.iname.c_str());
+ rt_db_free_internal(in);
+ BU_PUT(in, struct rt_db_internal);
+ return;
}
if (s->verbosity)
bu_log("Write solid %s contents\n", dpi.iname.c_str());
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits