Pārlūkot izejas kodu

flatten_strong() should combine GeomVertexDatas with different names

David Rose 19 gadi atpakaļ
vecāks
revīzija
784e24a29e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      panda/src/pgraph/nodePath.cxx

+ 1 - 1
panda/src/pgraph/nodePath.cxx

@@ -5555,7 +5555,7 @@ flatten_strong() {
   gr.apply_attribs(node());
   int num_removed = gr.flatten(node(), ~0);
 
-  gr.collect_vertex_data(node(), ~SceneGraphReducer::CVD_format);
+  gr.collect_vertex_data(node(), ~(SceneGraphReducer::CVD_format | SceneGraphReducer::CVD_name));
   gr.unify(node());
 
   return num_removed;