Skip to content

Commit

Permalink
If I'm reading the initialize code in geogram correctly, we need to c…
Browse files Browse the repository at this point in the history
…all this at least once, but there's no harm in calling it multiple times since there's an internal initialized flag it checks.
  • Loading branch information
starseeker committed Jan 26, 2024
1 parent 7d8ce87 commit 74cb50f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/libged/bot/manifold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,14 +267,8 @@ _bot_cmd_manifold(void *bs, int argc, const char **argv)
return BRLCAD_OK;
}

// GEO::initialize needs to be called once. TODO - this probably
// should happen once for all of libged, if we use geogram in
// multiple commands...
static int geo_inited = 0;
if (!geo_inited) {
GEO::initialize();
geo_inited = 1;
}
// Make sure geogram is initialized
GEO::initialize();

struct _ged_bot_info *gb = (struct _ged_bot_info *)bs;

Expand Down

0 comments on commit 74cb50f

Please sign in to comment.