From cf8d1ac8cd52444169de6ff1440a50e14a3f28cd Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 1 Oct 2012 21:54:54 +0000 Subject: [PATCH] preserve named GeomNodes --- pandatool/src/bam/bamToEgg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandatool/src/bam/bamToEgg.cxx b/pandatool/src/bam/bamToEgg.cxx index 4cee33dbb0..3605910304 100644 --- a/pandatool/src/bam/bamToEgg.cxx +++ b/pandatool/src/bam/bamToEgg.cxx @@ -559,7 +559,7 @@ convert_geom_node(GeomNode *node, const WorkingNodePath &node_path, egg_group->set_decal_flag(true); } - if (fancy_attributes || has_decal) { + if (fancy_attributes || has_decal || !node->get_name().empty()) { // If we have any fancy attributes on the node, or if we're making // decal geometry, we have to make a special node to hold the // geometry (normally it would just appear within its parent).