diff --git a/src/osgPlugins/txp/TrPageParser.cpp b/src/osgPlugins/txp/TrPageParser.cpp index 03208b64c..ed8f7ce95 100644 --- a/src/osgPlugins/txp/TrPageParser.cpp +++ b/src/osgPlugins/txp/TrPageParser.cpp @@ -1165,7 +1165,7 @@ bool TrPageParser::EndChildren(void *in_node) // // track whether we are under a billboard in the scene graph // - if (is_billboard(static_cast(in_node))) + if (is_billboard(node)) in_billboard = false; // if we are under layer all the groups are dropped out, so no need to do this