From bb3af27df0c338d078cbaec2e38c4c27a80bed33 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 28 Jun 2001 01:18:16 +0000 Subject: [PATCH] add clear_lod --- panda/src/egg/eggGroup.I | 10 ++++++++++ panda/src/egg/eggGroup.h | 1 + 2 files changed, 11 insertions(+) diff --git a/panda/src/egg/eggGroup.I b/panda/src/egg/eggGroup.I index 2a376a1ba0..572ef0bcdd 100644 --- a/panda/src/egg/eggGroup.I +++ b/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 diff --git a/panda/src/egg/eggGroup.h b/panda/src/egg/eggGroup.h index 1af2794540..899217ed49 100644 --- a/panda/src/egg/eggGroup.h +++ b/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;