Browse Source

minor change: calc_tight_bounds should be a const method

David Rose 19 years ago
parent
commit
42fc71791e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      panda/src/pgraph/nodePath.cxx
  2. 1 1
      panda/src/pgraph/nodePath.h

+ 1 - 1
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);

+ 1 - 1
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;