From Lionel Lagarde, "The setNormal method of osg::Billboard has side effects (it calls updateCache and update the normal to Z rotation matrix). When cloning billboards, copying the normal vector is not enough. In the correction, the copy constructor calls setNormal to update the internal members."

This commit is contained in:
Robert Osfield
2012-02-07 11:21:11 +00:00
parent 3ae53557b1
commit 0775483b7c

View File

@@ -35,7 +35,10 @@ Billboard::Billboard(const Billboard& billboard,const CopyOp& copyop):
_normal(billboard._normal),
_positionList(billboard._positionList),
_cachedMode(billboard._cachedMode),
_side(billboard._side) {}
_side(billboard._side)
{
setNormal(_normal);
}
Billboard::~Billboard()
{