Fixed merge conflict issue

This commit is contained in:
anniruddh.koppal 2015-06-09 14:04:11 -07:00
parent 7f26ccb9ba
commit 3f4d1c4ed3
2 changed files with 1 additions and 7 deletions

View File

@ -312,10 +312,6 @@ float Terrain::getHeight(float x, float z, Vec3 * normal) const
normal->setZero();
}
return 0;
if (normal)
{
normal->setZero();
}
}else
{
float a = getImageHeight(i,j)*getScaleY();
@ -547,7 +543,7 @@ bool Terrain::getIntersectionPoint(const Ray & ray, Vec3 & intersectionPoint) co
{
lastRayPosition = rayPos;
rayPos += rayStep;
if (normal.isZero
if (normal.isZero())
{
intersectionPoint = Vec3(0, 0, 0);
return false;

View File

@ -354,8 +354,6 @@ public:
*/
bool getIntersectionPoint(const Ray & ray, Vec3 & intersectionPoint) const;
bool getIntersectionPoint(const Ray & ray, Vec3 & intersectionPoint);
/**
* set the MaxDetailAmount.
*/