浏览代码

billboard oops

David Rose 24 年之前
父节点
当前提交
9813829912
共有 1 个文件被更改,包括 1 次插入0 次删除
  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::
 void RenderState::
 determine_billboard() {
 determine_billboard() {
   const RenderAttrib *attrib = get_attrib(BillboardAttrib::get_class_type());
   const RenderAttrib *attrib = get_attrib(BillboardAttrib::get_class_type());
+  _billboard = (const BillboardAttrib *)NULL;
   if (attrib != (const RenderAttrib *)NULL) {
   if (attrib != (const RenderAttrib *)NULL) {
     _billboard = DCAST(BillboardAttrib, attrib);
     _billboard = DCAST(BillboardAttrib, attrib);
   }
   }