Oops a previous change (thought to be harmless) turned out to be harmful.
This could cause tile edges to no longer match up becuase this routine would adjust node elevations which it shouldn't have. Hopefully this change fixes the problem.
This commit is contained in:
parent
b3e0d4b5f3
commit
400db7c3a9
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ int TGTriNodes::unique_add( const Point3D& p ) {
|
|||
// cout << "found an existing match!" << endl;
|
||||
|
||||
// update elevation if new point has better info
|
||||
if ( p.z() > current->z() ) {
|
||||
if ( current->z() < -9000 ) {
|
||||
current->setz( p.z() );
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ int TGTriNodes::course_add( const Point3D& p ) {
|
|||
// cout << "found an existing match!" << endl;
|
||||
|
||||
// update elevation if new point has better info
|
||||
if ( p.z() > current->z() ) {
|
||||
if ( current->z() < -9000 ) {
|
||||
current->setz( p.z() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue