Revision: 77518
http://sourceforge.net/p/brlcad/code/77518
Author: starseeker
Date: 2020-10-20 19:14:03 +0000 (Tue, 20 Oct 2020)
Log Message:
-----------
Check for a view state before we try to set this - if the last MGED dm was
closed, we may not have one. (User reported issue)
Modified Paths:
--------------
brlcad/trunk/src/mged/attach.c
Modified: brlcad/trunk/src/mged/attach.c
===================================================================
--- brlcad/trunk/src/mged/attach.c 2020-10-20 19:07:41 UTC (rev 77517)
+++ brlcad/trunk/src/mged/attach.c 2020-10-20 19:14:03 UTC (rev 77518)
@@ -68,7 +68,7 @@
void set_curr_dm(struct mged_dm *nc)
{
mged_curr_dm = nc;
- if (nc != MGED_DM_NULL) {
+ if (nc != MGED_DM_NULL && nc->dm_view_state) {
GEDP->ged_gvp = nc->dm_view_state->vs_gvp;
GEDP->ged_gvp->gv_grid = *nc->dm_grid_state; /* struct copy */
} else {
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