Explorar el Código

fix oops on flatten

David Rose hace 18 años
padre
commit
2526ff3af1
Se han modificado 1 ficheros con 0 adiciones y 7 borrados
  1. 0 7
      panda/src/pgraph/accumulatedAttribs.cxx

+ 0 - 7
panda/src/pgraph/accumulatedAttribs.cxx

@@ -186,13 +186,6 @@ collect(PandaNode *node, int attrib_types) {
       keep_state = keep_state->add_attrib(attrib, override);
       keep_state = keep_state->add_attrib(attrib, override);
     }
     }
 
 
-    attrib = collect_state->get_attrib(TextureAttrib::get_class_type());
-    if (attrib != (const RenderAttrib *)NULL) {
-      int override = collect_state->get_override(TextureAttrib::get_class_type());
-      collect_state = collect_state->remove_attrib(TextureAttrib::get_class_type());
-      keep_state = keep_state->add_attrib(attrib, override);
-    }
-
     attrib = collect_state->get_attrib(ClipPlaneAttrib::get_class_type());
     attrib = collect_state->get_attrib(ClipPlaneAttrib::get_class_type());
     if (attrib != (const RenderAttrib *)NULL) {
     if (attrib != (const RenderAttrib *)NULL) {
       int override = collect_state->get_override(ClipPlaneAttrib::get_class_type());
       int override = collect_state->get_override(ClipPlaneAttrib::get_class_type());