From 94911960d6d06e3b1a2c22dcdb10e8f53744b5d0 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Thu, 5 Jul 2018 11:03:12 -0600 Subject: Fixed build on windows --- src/poser_general_optimizer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/poser_general_optimizer.c') diff --git a/src/poser_general_optimizer.c b/src/poser_general_optimizer.c index 6f181a3..4894ce8 100644 --- a/src/poser_general_optimizer.c +++ b/src/poser_general_optimizer.c @@ -7,7 +7,7 @@ STATIC_CONFIG_ITEM( CONFIG_MAX_ERROR, "max-error", 'f', "Maximum error permitted by poser_general_optimizer", .0001 ); STATIC_CONFIG_ITEM( CONFIG_FAIL_TO_RESET, "failures-to-reset", 'i', "Failures needed before seed poser is re-run", 1 ); -STATIC_CONFIG_ITEM( CONFIG_SUC_TO_RESET, "successes-to-reset", 'i', "[TODO: I don't know what this does]", -1 ); +STATIC_CONFIG_ITEM( CONFIG_SUC_TO_RESET, "successes-to-reset", 'i', "Reset periodically even if there were no failures", -1 ); STATIC_CONFIG_ITEM( CONFIG_SEED_POSER, "seed-poser", 's', "Poser to be used to seed optimizer", "PoserEPNP" ); void *GetDriver(const char *name); @@ -21,7 +21,7 @@ void general_optimizer_data_init(GeneralOptimizerData *d, SurviveObject *so) { survive_attach_configi( ctx, "failures-to-reset", &d->failures_to_reset ); survive_attach_configi( ctx, "successes-to-reset", &d->successes_to_reset ); - const char *subposer = survive_configs(ctx, "seed-poser", SC_GET, 0 ); + const char *subposer = survive_configs(ctx, "seed-poser", SC_GET, "PoserEPNP"); d->seed_poser = (PoserCB)GetDriver(subposer); SV_INFO("Initializing general optimizer:"); -- cgit v1.2.3