Bläddra i källkod

billboard oops

David Rose 24 år sedan
förälder
incheckning
9813829912
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      panda/src/pgraph/renderState.cxx

+ 1 - 0
panda/src/pgraph/renderState.cxx

@@ -852,6 +852,7 @@ do_invert_compose(const RenderState *other) const {
 void RenderState::
 determine_billboard() {
   const RenderAttrib *attrib = get_attrib(BillboardAttrib::get_class_type());
+  _billboard = (const BillboardAttrib *)NULL;
   if (attrib != (const RenderAttrib *)NULL) {
     _billboard = DCAST(BillboardAttrib, attrib);
   }