From 6f0baf6ca90afb7b63bbf064798bab718037740c Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 22 Apr 2006 13:41:06 +0000 Subject: [PATCH] thanks to Erik's texture map I can now drop empty.rgb altogether and just specify the same texture in the "foo.lighted" and "foo.unlighted" material entry. This also allows to drop the state cloning and thereby solves the most urgent apt_signs.cxx TODO. :-) --- simgear/scene/tgdb/apt_signs.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/simgear/scene/tgdb/apt_signs.cxx b/simgear/scene/tgdb/apt_signs.cxx index 715c313c..3bda05cb 100644 --- a/simgear/scene/tgdb/apt_signs.cxx +++ b/simgear/scene/tgdb/apt_signs.cxx @@ -224,8 +224,7 @@ ssgBranch *sgMakeSign(SGMaterialLib *matlib, const string path, const string con SGMaterial *m = matlib->find(u); if (m) { - unlighted_state = (ssgSimpleState *)m->get_state()->clone(SSG_CLONE_STATE); - unlighted_state->setTexture(lighted_state->getTexture()); + unlighted_state = m->get_state(); } else { SG_LOG(SG_TERRAIN, SG_ALERT, SIGN "ignoring unknown material `" << u << '\''); unlighted_state = lighted_state; -- 2.39.5