mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 04:33:04 -04:00
oops, missed one
This commit is contained in:
parent
f355918029
commit
ad4056cf6c
@ -375,7 +375,7 @@ compute_child(CullTraverser *trav, CullTraverserData &data) {
|
||||
float dist2 = center.dot(center);
|
||||
|
||||
for (int index = 0; index < (int)cdata->_switch_vector.size(); ++index) {
|
||||
if (cdata->_switch_vector[index].in_range_2(dist2)) {
|
||||
if (cdata->_switch_vector[index].in_range_2(dist2*cdata->_lod_scale)) {
|
||||
if (pgraph_cat.is_debug()) {
|
||||
pgraph_cat.debug()
|
||||
<< data._node_path << " at distance " << sqrt(dist2)
|
||||
@ -877,6 +877,7 @@ fillin(DatagramIterator &scan, BamReader *manager) {
|
||||
|
||||
_switch_vector.push_back(sw);
|
||||
}
|
||||
_lod_scale = 1;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user