From 0775483b7cd5357f5b272e8373a608bda6aea2bc Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 7 Feb 2012 11:21:11 +0000 Subject: [PATCH] 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." --- src/osg/Billboard.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osg/Billboard.cpp b/src/osg/Billboard.cpp index 44adabd7e..8bebadab3 100644 --- a/src/osg/Billboard.cpp +++ b/src/osg/Billboard.cpp @@ -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() {