mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix dbg code
This commit is contained in:
parent
a6de4d64f4
commit
6e8568655d
@ -114,7 +114,7 @@ compute_child(const LPoint3f &cam_pos, const LPoint3f ¢er) const {
|
|||||||
// since lowest level LOD is lev 0, must invert the meaning of
|
// since lowest level LOD is lev 0, must invert the meaning of
|
||||||
// so minimum_LOD_number 0 will screen out no LODs, and increasing it
|
// so minimum_LOD_number 0 will screen out no LODs, and increasing it
|
||||||
// will screen out successively higher levels
|
// will screen out successively higher levels
|
||||||
int max_allowed_LOD_number = (_switch_vector.size()-1) - minimum_LOD_number;
|
int max_allowed_LOD_number = _switch_vector.size() - minimum_LOD_number;
|
||||||
if(child > max_allowed_LOD_number) {
|
if(child > max_allowed_LOD_number) {
|
||||||
child = max_allowed_LOD_number;
|
child = max_allowed_LOD_number;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user