From 2fdf6a6a6c5e5db202e494b9974e0fe5b829fde6 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Thu, 28 Dec 2000 03:50:11 +0000 Subject: [PATCH] added asserts back in --- panda/src/parametrics/nurbsCurveDrawer.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/panda/src/parametrics/nurbsCurveDrawer.cxx b/panda/src/parametrics/nurbsCurveDrawer.cxx index dfde069f42..9b3445d149 100644 --- a/panda/src/parametrics/nurbsCurveDrawer.cxx +++ b/panda/src/parametrics/nurbsCurveDrawer.cxx @@ -16,11 +16,11 @@ // Includes //////////////////////////////////////////////////////////////////// -#include "nurbsCurveDrawer.h" +#include "nurbsCurveDrawer.h" + + +TypeHandle NurbsCurveDrawer::_type_handle; - -TypeHandle NurbsCurveDrawer::_type_handle; - //////////////////////////////////////////////////////////////////// // Function: NurbsCurveDrawer::Constructor @@ -269,7 +269,7 @@ hilight(int n, float hr, float hg, float hb) { _cvs.set_vertex_color(n, hr, hg, hb); } if (_show_knots) { - ///dnassert(_knotnums[n] >= 0 && _knotnums[n] < _knots.get_num_vertices()); + nassertr(_knotnums[n] >= 0 && _knotnums[n] < _knots.get_num_vertices(), false); _knots.set_vertex_color(_knotnums[n], hr, hg, hb); } @@ -297,7 +297,7 @@ unhilight(int n) { _cvs.set_vertex_color(n, _cv_color[0], _cv_color[1], _cv_color[2]); } if (_show_knots) { - ///dnassert(_knotnums[n] >= 0 && _knotnums[n] < _knots.get_num_vertices()); + nassertr(_knotnums[n] >= 0 && _knotnums[n] < _knots.get_num_vertices(), false); _knots.set_vertex_color(_knotnums[n], _knot_color[0], _knot_color[1], _knot_color[2]); }