mirror of https://github.com/axmolengine/axmol.git
Fixed merge conflict issue
This commit is contained in:
parent
7f26ccb9ba
commit
3f4d1c4ed3
|
@ -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;
|
||||
|
|
|
@ -354,8 +354,6 @@ public:
|
|||
*/
|
||||
bool getIntersectionPoint(const Ray & ray, Vec3 & intersectionPoint) const;
|
||||
|
||||
bool getIntersectionPoint(const Ray & ray, Vec3 & intersectionPoint);
|
||||
|
||||
/**
|
||||
* set the MaxDetailAmount.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue