Revision: 78139
http://sourceforge.net/p/brlcad/code/78139
Author: starseeker
Date: 2021-01-27 20:15:09 +0000 (Wed, 27 Jan 2021)
Log Message:
-----------
Fix inverted check for identity matrix.
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-27 20:06:24 UTC (rev
78138)
+++ brlcad/trunk/src/libged/npush/npush.cpp 2021-01-27 20:15:09 UTC (rev
78139)
@@ -718,7 +718,7 @@
} else {
// If we're not copying the solid and not applying a matrix, we're done
- if (!dpi.iname.length() && !bn_mat_is_identity(dpi.mat))
+ if (!dpi.iname.length() && bn_mat_is_identity(dpi.mat))
return;
if (dpi.iname.length()) {
@@ -758,7 +758,7 @@
if (!s->dry_run) {
dp = db_diradd(s->wdbp->dbip, dpi.iname.c_str(),
RT_DIR_PHONY_ADDR, 0, dpi.dp->d_flags, (void *)&intern.idb_type);
if (dp == RT_DIR_NULL) {
- bu_log("Unable to add %s to the database directory",
dpi.iname.c_str());
+ bu_log("Unable to add %s to the database directory\n",
dpi.iname.c_str());
return;
}
}
@@ -773,8 +773,10 @@
if (!s->dry_run) {
if (rt_db_put_internal(dp, s->wdbp->dbip, &intern,
s->wdbp->wdb_resp) < 0) {
- bu_log("Unable to store %s to the database", dp->d_namep);
+ bu_log("Unable to store %s to the database\n", dp->d_namep);
return;
+ } else {
+ bu_log("Wrote solid %s to the database\n", dp->d_namep);
}
}
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