diff --git a/pandatool/src/softegg/config_softegg.cxx b/pandatool/src/softegg/config_softegg.cxx index bd4928bccb..6f1d5a9bb2 100755 --- a/pandatool/src/softegg/config_softegg.cxx +++ b/pandatool/src/softegg/config_softegg.cxx @@ -31,12 +31,12 @@ ConfigureFn(config_softegg) { // Should we respect the Soft? double-sided flag (true) or ignore it // and assume everything is single-sided (false)? -const bool soft_default_double_sided = config_softegg.GetBool("soft-default-double-sided", false); +ConfigVariableBool soft_default_double_sided("soft-default-double-sided", false); // Should we apply vertex color even when a texture is applied (true) // or only when no texture is applied or the vertex-color egg flag is // set (false)? -const bool soft_default_vertex_color = config_softegg.GetBool("soft-default-vertex-color", true); +ConfigVariableBool soft_default_vertex_color("soft-default-vertex-color", true); //////////////////////////////////////////////////////////////////// // Function: init_libsoftegg diff --git a/pandatool/src/softegg/config_softegg.h b/pandatool/src/softegg/config_softegg.h index 4ea640360f..a03fd78c10 100755 --- a/pandatool/src/softegg/config_softegg.h +++ b/pandatool/src/softegg/config_softegg.h @@ -17,11 +17,12 @@ #include "pandatoolbase.h" #include "notifyCategoryProxy.h" +#include "configVariableBool.h" NotifyCategoryDeclNoExport(softegg); -extern const bool soft_default_double_sided; -extern const bool soft_default_vertex_color; +extern ConfigVariableBool soft_default_double_sided; +extern ConfigVariableBool soft_default_vertex_color; extern void init_libsoftegg();