Fixed unitialized variable access to premature calling of computeMatrix().
This commit is contained in:
parent
d93d2e0ec1
commit
b6ec9dc532
@ -221,11 +221,14 @@ float ConeSector::operator() (const osg::Vec3& eyeLocal) const
|
|||||||
DirectionalSector::DirectionalSector(const osg::Vec3& direction, float horizLobeAngle, float vertLobeAngle, float lobeRollAngle, float fadeAngle):
|
DirectionalSector::DirectionalSector(const osg::Vec3& direction, float horizLobeAngle, float vertLobeAngle, float lobeRollAngle, float fadeAngle):
|
||||||
Sector()
|
Sector()
|
||||||
{
|
{
|
||||||
setDirection(direction);
|
_direction = direction;
|
||||||
setHorizLobeAngle(horizLobeAngle);
|
_cosHorizAngle = cos(horizLobeAngle*0.5);
|
||||||
setVertLobeAngle(vertLobeAngle);
|
_cosVertAngle = cos(vertLobeAngle*0.5);
|
||||||
setLobeRollAngle(lobeRollAngle);
|
_rollAngle = lobeRollAngle;
|
||||||
|
|
||||||
setFadeAngle(fadeAngle);
|
setFadeAngle(fadeAngle);
|
||||||
|
|
||||||
|
computeMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DirectionalSector::computeMatrix()
|
void DirectionalSector::computeMatrix()
|
||||||
|
Loading…
Reference in New Issue
Block a user