浏览代码

add clear_lod

David Rose 24 年之前
父节点
当前提交
bb3af27df0
共有 2 个文件被更改,包括 11 次插入0 次删除
  1. 10 0
      panda/src/egg/eggGroup.I
  2. 1 0
      panda/src/egg/eggGroup.h

+ 10 - 0
panda/src/egg/eggGroup.I

@@ -613,6 +613,16 @@ set_lod(const EggSwitchCondition &lod) {
   _lod = lod.make_copy();
 }
 
+////////////////////////////////////////////////////////////////////
+//     Function: EggGroup::clear_lod
+//       Access: Public
+//  Description:
+////////////////////////////////////////////////////////////////////
+INLINE void EggGroup::
+clear_lod() {
+  _lod = NULL;
+}
+
 ////////////////////////////////////////////////////////////////////
 //     Function: EggGroup::has_lod
 //       Access: Public

+ 1 - 0
panda/src/egg/eggGroup.h

@@ -172,6 +172,7 @@ public:
   INLINE CollideMask get_into_collide_mask() const;
 
   INLINE void set_lod(const EggSwitchCondition &lod);
+  INLINE void clear_lod();
   INLINE bool has_lod() const;
   INLINE const EggSwitchCondition &get_lod() const;