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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user