mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
added asserts back in
This commit is contained in:
parent
fd8068d905
commit
2fdf6a6a6c
@ -16,11 +16,11 @@
|
|||||||
// Includes
|
// Includes
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "nurbsCurveDrawer.h"
|
#include "nurbsCurveDrawer.h"
|
||||||
|
|
||||||
|
|
||||||
|
TypeHandle NurbsCurveDrawer::_type_handle;
|
||||||
|
|
||||||
|
|
||||||
TypeHandle NurbsCurveDrawer::_type_handle;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: NurbsCurveDrawer::Constructor
|
// Function: NurbsCurveDrawer::Constructor
|
||||||
@ -269,7 +269,7 @@ hilight(int n, float hr, float hg, float hb) {
|
|||||||
_cvs.set_vertex_color(n, hr, hg, hb);
|
_cvs.set_vertex_color(n, hr, hg, hb);
|
||||||
}
|
}
|
||||||
if (_show_knots) {
|
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);
|
_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]);
|
_cvs.set_vertex_color(n, _cv_color[0], _cv_color[1], _cv_color[2]);
|
||||||
}
|
}
|
||||||
if (_show_knots) {
|
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],
|
_knots.set_vertex_color(_knotnums[n],
|
||||||
_knot_color[0], _knot_color[1], _knot_color[2]);
|
_knot_color[0], _knot_color[1], _knot_color[2]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user