From 42fc71791eba8acf153b7845d6a4b7a52eda95dc Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 18 Aug 2006 21:11:16 +0000 Subject: [PATCH] minor change: calc_tight_bounds should be a const method --- panda/src/pgraph/nodePath.cxx | 2 +- panda/src/pgraph/nodePath.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/pgraph/nodePath.cxx b/panda/src/pgraph/nodePath.cxx index 21ea105d15..b85cebd065 100644 --- a/panda/src/pgraph/nodePath.cxx +++ b/panda/src/pgraph/nodePath.cxx @@ -5512,7 +5512,7 @@ write_bounds(ostream &out) const { //////////////////////////////////////////////////////////////////// bool NodePath:: calc_tight_bounds(LPoint3f &min_point, LPoint3f &max_point, - Thread *current_thread) { + Thread *current_thread) const { min_point.set(0.0f, 0.0f, 0.0f); max_point.set(0.0f, 0.0f, 0.0f); nassertr_always(!is_empty(), false); diff --git a/panda/src/pgraph/nodePath.h b/panda/src/pgraph/nodePath.h index 7788efb986..91fc456b0a 100644 --- a/panda/src/pgraph/nodePath.h +++ b/panda/src/pgraph/nodePath.h @@ -785,7 +785,7 @@ PUBLISHED: void force_recompute_bounds(); void write_bounds(ostream &out) const; bool calc_tight_bounds(LPoint3f &min_point, LPoint3f &max_point, - Thread *current_thread = Thread::get_current_thread()); + Thread *current_thread = Thread::get_current_thread()) const; void analyze() const;