Browse Source

flatten_strong() should unify too

David Rose 20 năm trước cách đây
mục cha
commit
5c623893be
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      panda/src/pgraph/nodePath.cxx

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

@@ -5481,6 +5481,9 @@ flatten_strong() {
   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;
 }
 }