Browse Source

flatten text more aggressively

David Rose 20 years ago
parent
commit
04e4ed5700
1 changed files with 3 additions and 1 deletions
  1. 3 1
      panda/src/text/textNode.cxx

+ 3 - 1
panda/src/text/textNode.cxx

@@ -319,7 +319,9 @@ generate() {
   if (text_flatten) {
     SceneGraphReducer gr;
     gr.apply_attribs(root);
-    gr.flatten(root, ~0);
+    gr.flatten(root, ~SceneGraphReducer::CS_within_radius);
+    gr.collect_vertex_data(root);
+    gr.unify(root);
   }
 
   return root;