Revision: 76635
http://sourceforge.net/p/brlcad/code/76635
Author: starseeker
Date: 2020-08-01 20:59:40 +0000 (Sat, 01 Aug 2020)
Log Message:
-----------
Add a magic slot to bview, and initialize it in ged_view_init
Modified Paths:
--------------
brlcad/branches/bioh/include/dm/bview.h
brlcad/branches/bioh/src/libged/ged.c
Modified: brlcad/branches/bioh/include/dm/bview.h
===================================================================
--- brlcad/branches/bioh/include/dm/bview.h 2020-08-01 20:49:32 UTC (rev
76634)
+++ brlcad/branches/bioh/include/dm/bview.h 2020-08-01 20:59:40 UTC (rev
76635)
@@ -196,6 +196,7 @@
};
struct bview {
+ uint32_t magic; /**< @brief magic number */
struct bu_vls gv_name;
fastf_t gv_scale;
fastf_t gv_size; /**< @brief 2.0 *
scale */
Modified: brlcad/branches/bioh/src/libged/ged.c
===================================================================
--- brlcad/branches/bioh/src/libged/ged.c 2020-08-01 20:49:32 UTC (rev
76634)
+++ brlcad/branches/bioh/src/libged/ged.c 2020-08-01 20:59:40 UTC (rev
76635)
@@ -292,6 +292,8 @@
if (gvp == GED_VIEW_NULL)
return;
+ gvp->magic = BVIEW_MAGIC;
+
gvp->gv_scale = 500.0;
gvp->gv_size = 2.0 * gvp->gv_scale;
gvp->gv_isize = 1.0 / gvp->gv_size;
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