From d3d3df5c5c4164e57e7fb078c88b1a765f90ffb9 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 16 Jun 2009 18:49:39 +0000 Subject: [PATCH] remove dconfig reference --- pandatool/src/softegg/config_softegg.cxx | 4 ++-- pandatool/src/softegg/config_softegg.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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();