Fix uninitialized var
This commit is contained in:
@@ -205,7 +205,7 @@ void addTreeToLeafGeode(Geode* geode, const SGVec3f& p, const SGVec3f& t)
|
|||||||
Geometry* geom
|
Geometry* geom
|
||||||
= static_cast<Geometry*>(geode->getDrawable(numDrawables - 1));
|
= static_cast<Geometry*>(geode->getDrawable(numDrawables - 1));
|
||||||
Vec3Array* posArray = static_cast<Vec3Array*>(geom->getColorArray());
|
Vec3Array* posArray = static_cast<Vec3Array*>(geom->getColorArray());
|
||||||
Vec3Array* tnormalArray;
|
Vec3Array* tnormalArray = NULL;
|
||||||
if (use_tree_shadows || use_tree_normals)
|
if (use_tree_shadows || use_tree_normals)
|
||||||
{tnormalArray = static_cast<Vec3Array*>(geom->getSecondaryColorArray());}
|
{tnormalArray = static_cast<Vec3Array*>(geom->getSecondaryColorArray());}
|
||||||
if (posArray->size()
|
if (posArray->size()
|
||||||
|
|||||||
Reference in New Issue
Block a user