Browse Source

flatten_medium() should also unify

David Rose 20 years ago
parent
commit
a30470be19
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/pgraph/nodePath.cxx

+ 3 - 0
panda/src/pgraph/nodePath.cxx

@@ -5524,6 +5524,9 @@ flatten_medium() {
   gr.apply_attribs(node());
   gr.apply_attribs(node());
   int num_removed = gr.flatten(node(), 0);
   int num_removed = gr.flatten(node(), 0);
 
 
+  gr.collect_vertex_data(node());
+  gr.unify(node());
+
   return num_removed;
   return num_removed;
 }
 }