Ver Fonte

add clear_lod

David Rose há 24 anos atrás
pai
commit
bb3af27df0
2 ficheiros alterados com 11 adições e 0 exclusões
  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;