Revision: 65336
http://sourceforge.net/p/brlcad/code/65336
Author: starseeker
Date: 2015-06-16 21:06:48 +0000 (Tue, 16 Jun 2015)
Log Message:
-----------
Make sure we have the objects specified in the database before we proceed.
Modified Paths:
--------------
brlcad/trunk/src/libged/gdiff.c
Modified: brlcad/trunk/src/libged/gdiff.c
===================================================================
--- brlcad/trunk/src/libged/gdiff.c 2015-06-16 20:38:36 UTC (rev 65335)
+++ brlcad/trunk/src/libged/gdiff.c 2015-06-16 21:06:48 UTC (rev 65336)
@@ -141,6 +141,12 @@
bu_log("right: %s", argv[bu_optind+1]);
*/
if (do_diff_raytrace) {
+ if (db_lookup(gedp->ged_wdbp->dbip, left_obj, LOOKUP_NOISY) ==
RT_DIR_NULL) {
+ return GED_ERROR;
+ }
+ if (db_lookup(gedp->ged_wdbp->dbip, right_obj, LOOKUP_NOISY) ==
RT_DIR_NULL) {
+ return GED_ERROR;
+ }
analyze_raydiff(&results, gedp->ged_wdbp->dbip, left_obj, right_obj,
&tol);
/* TODO - may want to integrate with a "regular" diff and report
intelligently. Needs
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